Skip to content

Commit

Permalink
ARM: mxs: acknowledge gpio irq
Browse files Browse the repository at this point in the history
This fixes a machine hang after a gpio irq triggered.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Uwe Kleine-König authored and Sascha Hauer committed Jan 26, 2011
1 parent 5f804df commit 1f6b5dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-mxs/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ static void mxs_gpio_irq_handler(u32 irq, struct irq_desc *desc)
struct mxs_gpio_port *port = (struct mxs_gpio_port *)get_irq_data(irq);
u32 gpio_irq_no_base = port->virtual_irq_start;

desc->irq_data.chip->irq_ack(&desc->irq_data);

irq_stat = __raw_readl(port->base + PINCTRL_IRQSTAT(port->id)) &
__raw_readl(port->base + PINCTRL_IRQEN(port->id));

Expand Down

0 comments on commit 1f6b5dd

Please sign in to comment.