gpio: pxa: change the interrupt management
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 28 Nov 2015 21:37:44 +0000 (22:37 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 15:05:44 +0000 (16:05 +0100)
commit384ca3c6a28d27030ec971f20b775c596ff87ae5
treed61d5f041a5ef12ce87b962a5871285a15a2ff09
parent8852b2f7dbf69544fb2ea65896405e11d930e132
gpio: pxa: change the interrupt management

The interrupt management is changed by this patch to rely on chip data
instead of chained interrupts.

The main goal is to loosen the dependency on the global pxa chip
structure in favor of the passed chip data. The secondary goal is to
better show in /proc/interrupts the difference between interrupts for
gpio0 and gpio1 (directly wired to interrupt controller), and the other
gpios (wired onto a third line in the interrupt controller).

The last advantage of this patch is that the interrupt is actually
requested, so that another driver cannot steal this line, or overwrite
the handler.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pxa.c