diff options
author | Liu Gang <Gang.Liu@nxp.com> | 2016-10-21 15:31:28 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-10-24 02:20:40 +0200 |
commit | d71cf15b865bdd45925f7b094d169aaabd705145 (patch) | |
tree | 1978e26de814c4c2d8741ba4df0d513d288cd0e4 /drivers/gpio | |
parent | 6d8d271eee0eaa3c3ffd6db29a825e02316359d4 (diff) | |
download | op-kernel-dev-d71cf15b865bdd45925f7b094d169aaabd705145.zip op-kernel-dev-d71cf15b865bdd45925f7b094d169aaabd705145.tar.gz |
gpio: mpc8xxx: Correct irq handler function
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mpc8xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index 425501c..793518a 100644 --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -239,7 +239,7 @@ static int mpc8xxx_gpio_irq_map(struct irq_domain *h, unsigned int irq, irq_hw_number_t hwirq) { irq_set_chip_data(irq, h->host_data); - irq_set_chip_and_handler(irq, &mpc8xxx_irq_chip, handle_level_irq); + irq_set_chip_and_handler(irq, &mpc8xxx_irq_chip, handle_edge_irq); return 0; } |