mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
thunderbolt: Mask ring interrupt properly when polling starts
When ring enters polling mode we are expected to mask the ring interrupt
before the callback is called. However, the current code actually
unmasks it probably because of a copy-paste mistake.
Mask the interrupt properly from now on.
Fixes: 4ffe722eef ("thunderbolt: Add polling mode for rings")
Signed-off-by: Mika Westerberg <[email protected]>
Acked-by: Yehezkel Bernat <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
78dfa29c84
commit
74657181e7
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ static void __ring_interrupt(struct tb_ring *ring)
|
|||
return;
|
||||
|
||||
if (ring->start_poll) {
|
||||
__ring_interrupt_mask(ring, false);
|
||||
__ring_interrupt_mask(ring, true);
|
||||
ring->start_poll(ring->poll_data);
|
||||
} else {
|
||||
schedule_work(&ring->work);
|
||||
|
|
|
|||
Loading…
Reference in a new issue