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: 4ffe722eefcb ("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>

authored by Mika Westerberg and committed by Greg Kroah-Hartman 74657181 78dfa29c

+1 -1
+1 -1
drivers/thunderbolt/nhi.c
··· 339 339 return; 340 340 341 341 if (ring->start_poll) { 342 - __ring_interrupt_mask(ring, false); 342 + __ring_interrupt_mask(ring, true); 343 343 ring->start_poll(ring->poll_data); 344 344 } else { 345 345 schedule_work(&ring->work);