]> asedeno.scripts.mit.edu Git - linux.git/commit
thunderbolt: Mask ring interrupt properly when polling starts
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 1 Dec 2017 12:08:05 +0000 (15:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Dec 2017 15:37:51 +0000 (16:37 +0100)
commit74657181e7c449351d1ad28cf43941bc333e1bd6
tree6150e8f77e0b5bbd40714db2044787d5a0bf5c65
parent78dfa29c84bab548910490cf7508c53ad99d1d9e
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>
drivers/thunderbolt/nhi.c