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)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Oct 2013 11:16:32 +0000 (13:16 +0200)
commit03d152d5582abc8a1c19cb107164c3724bbd4be4
tree2461725bde10d4d9fdb0e057d476df1ccffbe5dd
parentd0e639c9e06d44e713170031fe05fb60ebe680af
gpio/lynxpoint: check if the interrupt is enabled in IRQ handler

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.

Cc: stable@vger.kernel.org
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>
drivers/gpio/gpio-lynxpoint.c