Skip to content

Commit 7465718

Browse files
westerigregkh
authored andcommitted
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: 4ffe722 ("thunderbolt: Add polling mode for rings") Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Acked-by: Yehezkel Bernat <yehezkel.bernat@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 78dfa29 commit 7465718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thunderbolt/nhi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ static void __ring_interrupt(struct tb_ring *ring)
339339
return;
340340

341341
if (ring->start_poll) {
342-
__ring_interrupt_mask(ring, false);
342+
__ring_interrupt_mask(ring, true);
343343
ring->start_poll(ring->poll_data);
344344
} else {
345345
schedule_work(&ring->work);

0 commit comments

Comments
 (0)