ARM: 5971/1: nomadik-gpio: mask/ack/unmask the parent irq
authorRabin Vincent <rabin.vincent@stericsson.com>
Wed, 3 Mar 2010 03:50:27 +0000 (04:50 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 19 Mar 2010 18:29:31 +0000 (18:29 +0000)
commitaaedaa2b5c610ae97f863078075d8d3c6ef91575
treed7b8635882c06dcc36afa332a6aad82f613180f6
parentc0fcb8dba829421fe20652a376a2bedaf168238f
ARM: 5971/1: nomadik-gpio: mask/ack/unmask the parent irq

Since we register as a chained handler, we need to take care of acking
the parent irq.  Current code had the acking disabled because just
acking the interrupt disables it on some interrupt controllers (like the
VIC used on Nomadik).  However, not acking at all is incorrect because
interrupt controllers like the GIC need an EOI indication, which is done
in the ack routine.

Solve this by maskacking and unmasking it appropriately, similar to how
handle_level_irq operates.

Acked-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-nomadik/gpio.c