gpio: mpc8xxx: Correct irq handler function
authorLiu Gang <Gang.Liu@nxp.com>
Fri, 21 Oct 2016 07:31:28 +0000 (15:31 +0800)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Feb 2017 10:04:03 +0000 (11:04 +0100)
commit4499fcbdb808df1a8ad9cf16d1a33cfcc1a2c745
tree2412e7554619bc4b7fda306dff14408a53a12784
parentdd22893297d519bb849a98bfe39a248a71c34c25
gpio: mpc8xxx: Correct irq handler function

commit d71cf15b865bdd45925f7b094d169aaabd705145 upstream.

From the beginning of the gpio-mpc8xxx.c, the "handle_level_irq"
has being used to handle GPIO interrupts in the PowerPC/Layerscape
platforms. But actually, almost all PowerPC/Layerscape platforms
assert an interrupt request upon either a high-to-low change or
any change on the state of the signal.

So the "handle_level_irq" is not reasonable for PowerPC/Layerscape
GPIO interrupt, it should be "handle_edge_irq". Otherwise the system
may lost some interrupts from the PIN's state changes.

Signed-off-by: Liu Gang <Gang.Liu@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/gpio/gpio-mpc8xxx.c