gpio/mxc: add chained_irq_enter/exit() to mx2_gpio_irq_handler
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 18 Jul 2013 12:58:06 +0000 (14:58 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Aug 2013 13:19:11 +0000 (15:19 +0200)
Similar to commit

0e44b6e (gpio/mxc: add chained_irq_enter/exit() to mx3_gpio_irq_handler())

. It doesn't seem to be critical to make the irqs work, but still it is
more correct.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxc.c

index 875a7c5395913870e29404c3d60f7eb06264468e..3307f6db3a925fb3469c29f34eb69bfb93ca312a 100644 (file)
@@ -292,6 +292,9 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc)
 {
        u32 irq_msk, irq_stat;
        struct mxc_gpio_port *port;
+       struct irq_chip *chip = irq_get_chip(irq);
+
+       chained_irq_enter(chip, desc);
 
        /* walk through all interrupt status registers */
        list_for_each_entry(port, &mxc_gpio_ports, node) {
@@ -303,6 +306,7 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc)
                if (irq_stat)
                        mxc_gpio_irq_handler(port, irq_stat);
        }
+       chained_irq_exit(chip, desc);
 }
 
 /*
This page took 0.027387 seconds and 5 git commands to generate.