gpio: gpio-wcove: fix GPIO IRQ status mask
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Mon, 24 Apr 2017 19:15:04 +0000 (12:15 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 28 Apr 2017 07:33:04 +0000 (09:33 +0200)
commit881ebd229f4a5ea88f269c1225245e50db9ba303
tree13932d6ea8188f61bf3993f3573737503d747ea5
parentfa2f60ffa0e0a33406ef9538635a57ac499965ae
gpio: gpio-wcove: fix GPIO IRQ status mask

According to Whiskey Cove PMIC spec, bit 7 of GPIOIRQ0_REG belongs to
battery IO. So we should skip this bit when checking for GPIO IRQ pending
status. Otherwise, wcove_gpio_irq_handler() might go into the infinite
loop until IRQ "pending" status becomes 0. This patch fixes this issue.

Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-wcove.c