提交 c0e811d9 编写于 作者: U Uwe Kleine-König 提交者: Linus Walleij

gpio/mxc: add chained_irq_enter/exit() to mx2_gpio_irq_handler

Similar to commit

	0e44b6ec (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: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: NShawn Guo <shawn.guo@linaro.org>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 8a564065
...@@ -292,6 +292,9 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc) ...@@ -292,6 +292,9 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc)
{ {
u32 irq_msk, irq_stat; u32 irq_msk, irq_stat;
struct mxc_gpio_port *port; struct mxc_gpio_port *port;
struct irq_chip *chip = irq_get_chip(irq);
chained_irq_enter(chip, desc);
/* walk through all interrupt status registers */ /* walk through all interrupt status registers */
list_for_each_entry(port, &mxc_gpio_ports, node) { 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) ...@@ -303,6 +306,7 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc)
if (irq_stat) if (irq_stat)
mxc_gpio_irq_handler(port, irq_stat); mxc_gpio_irq_handler(port, irq_stat);
} }
chained_irq_exit(chip, desc);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册