gpio/nomadik: fix spurious interrupts with SKE
authorRabin Vincent <rabin.vincent@stericsson.com>
Mon, 23 May 2011 06:52:18 +0000 (12:22 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 23 Apr 2012 09:04:50 +0000 (11:04 +0200)
commit6c42ad1cf4d7f22469eaecb2eee3b6442169d732
treedb6e5dc10e1007794b1e039d03acb7e726823312
parent6c12fe888a237c4a32d194fca8624c5c1d55e1b3
gpio/nomadik: fix spurious interrupts with SKE

If the pin is switching to altfunc, and there was an interrupt
installed on it which has been lazy disabled, actually mask the
interrupt to prevent spurious interrupts that would occur while
the pin is under control of the peripheral. Only SKE does this.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-nomadik.c