Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271149
b: refs/heads/master
c: 0e44b6e
h: refs/heads/master
i:
  271147: 33bb72d
v: v3
  • Loading branch information
Shawn Guo authored and Grant Likely committed Sep 21, 2011
1 parent 51ab041 commit b8c7df7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 479a0c7eee68243ad9915a9ccc217a35c4e5e0e2
refs/heads/master: 0e44b6eccfcb0b2da65b0e9eddd5d8b4eac5d8df
6 changes: 6 additions & 0 deletions trunk/drivers/gpio/gpio-mxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/of.h>
#include <linux/of_device.h>
#include <asm-generic/bug.h>
#include <asm/mach/irq.h>

enum mxc_gpio_hwtype {
IMX1_GPIO, /* runs on i.mx1 */
Expand Down Expand Up @@ -232,10 +233,15 @@ static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc)
{
u32 irq_stat;
struct mxc_gpio_port *port = irq_get_handler_data(irq);
struct irq_chip *chip = irq_get_chip(irq);

chained_irq_enter(chip, desc);

irq_stat = readl(port->base + GPIO_ISR) & readl(port->base + GPIO_IMR);

mxc_gpio_irq_handler(port, irq_stat);

chained_irq_exit(chip, desc);
}

/* MX2 has one interrupt *for all* gpio ports */
Expand Down

0 comments on commit b8c7df7

Please sign in to comment.