From: Greg Kroah-Hartman Date: Tue, 25 Oct 2016 18:31:28 +0000 (+0200) Subject: 4.7-stable patches X-Git-Tag: v4.8.5~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=103f969d64d1893ce96546c52d35624e4fe773d2;p=thirdparty%2Fkernel%2Fstable-queue.git 4.7-stable patches added patches: gpio-mpc8xxx-correct-irq-handler-function.patch --- diff --git a/queue-4.7/gpio-mpc8xxx-correct-irq-handler-function.patch b/queue-4.7/gpio-mpc8xxx-correct-irq-handler-function.patch new file mode 100644 index 00000000000..60be6970ad5 --- /dev/null +++ b/queue-4.7/gpio-mpc8xxx-correct-irq-handler-function.patch @@ -0,0 +1,38 @@ +From d71cf15b865bdd45925f7b094d169aaabd705145 Mon Sep 17 00:00:00 2001 +From: Liu Gang +Date: Fri, 21 Oct 2016 15:31:28 +0800 +Subject: gpio: mpc8xxx: Correct irq handler function + +From: Liu Gang + +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 +Signed-off-by: Linus Walleij +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/gpio/gpio-mpc8xxx.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/gpio/gpio-mpc8xxx.c ++++ b/drivers/gpio/gpio-mpc8xxx.c +@@ -239,7 +239,7 @@ static int mpc8xxx_gpio_irq_map(struct i + 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; + }