mei: fix the back to back interrupt handling
authorAlexander Usyskin <alexander.usyskin@intel.com>
Sun, 4 Dec 2016 13:22:59 +0000 (15:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Dec 2016 10:03:22 +0000 (11:03 +0100)
commita2eb0fc07f4d4f3b2eb2b1b1b72de738d4b9e003
tree05772491468eb98273ed6dac8cf99e22a2745cb8
parent4a8efd4a1a9593a11c808da94e6609f6d4ee7276
mei: fix the back to back interrupt handling

Since the newer HW sports two interrupts causes we cannot
just simply acknowledge the interrupts directly in the quick handler
and store the cause in the member variable, as the cause
will be overridden upon next interrupt while the interrupt thread
was not yet scheduled handling the previous interrupt.
The simple fix is to disable interrupts in quick handler
and acknowledge and enabled them in the interrupt thread.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hw-me.c
drivers/misc/mei/hw-me.h