]> Git Repo - linux.git/commitdiff
imx/gpio: Use handle_level_irq
authorUwe Kleine-König <[email protected]>
Mon, 19 Oct 2009 20:19:28 +0000 (22:19 +0200)
committerSascha Hauer <[email protected]>
Sat, 14 Nov 2009 09:29:15 +0000 (10:29 +0100)
According to Russell King handle_edge_irq is only useful for "edge-based
inputs where the controller does not remember transitions with the input
masked."

So using handle_edge_irq unconditionally for both edge and level irqs is
wrong.  Testing showed that the controller does remember transitions
while the interrupt is masked.  So use handle_level_irq unconditionally.

Signed-off-by: Uwe Kleine-König <[email protected]>
Cc: Russell King <[email protected]>
Cc: Sascha Hauer <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
arch/arm/plat-mxc/gpio.c

index cfc4a8b43e6a613f589c6d210d4226dc0721f5d3..d65ebe303b9f5dd1b36457b4d307542f0682bbaf 100644 (file)
@@ -282,7 +282,7 @@ int __init mxc_gpio_init(struct mxc_gpio_port *port, int cnt)
                for (j = port[i].virtual_irq_start;
                        j < port[i].virtual_irq_start + 32; j++) {
                        set_irq_chip(j, &gpio_irq_chip);
-                       set_irq_handler(j, handle_edge_irq);
+                       set_irq_handler(j, handle_level_irq);
                        set_irq_flags(j, IRQF_VALID);
                }
 
This page took 0.055812 seconds and 4 git commands to generate.