gpio/lynxpoint: check if the interrupt is enabled in IRQ handler
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Oct 2013 14:35:43 +0000 (17:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2013 12:31:06 +0000 (04:31 -0800)
commit5e2672132dbdb79a7d70711ca5c4bd1fa770b7bd
tree03b932ed77e29992801c24b99239487e2844ae0d
parent77fc96c899a5c926dd8ba6f340f1e04933e7bfd2
gpio/lynxpoint: check if the interrupt is enabled in IRQ handler

commit 03d152d5582abc8a1c19cb107164c3724bbd4be4 upstream.

Checking LP_INT_STAT is not enough in the interrupt handler because its
contents get updated regardless of whether the pin has interrupt enabled or
not. This causes the driver to loop forever for GPIOs that are pulled up.

Fix this by checking the interrupt enable bit for the pin as well.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-lynxpoint.c