1
0
Fork 0

gpio: pxa: add chain_eneter and chain_exit for irq handler

Signed-off-by: Chao Xie <xiechao.mail@gmail.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
hifive-unleashed-5.1
Chao Xie 2012-07-31 14:13:09 +08:00 committed by Haojian Zhuang
parent cd0a4a9503
commit 0d2ee5d773
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,8 @@
#include <linux/syscore_ops.h>
#include <linux/slab.h>
#include <asm/mach/irq.h>
#include <mach/irqs.h>
/*
@ -331,6 +333,9 @@ static void pxa_gpio_demux_handler(unsigned int irq, struct irq_desc *desc)
struct pxa_gpio_chip *c;
int loop, gpio, gpio_base, n;
unsigned long gedr;
struct irq_chip *chip = irq_desc_get_chip(desc);
chained_irq_enter(chip, desc);
do {
loop = 0;
@ -350,6 +355,8 @@ static void pxa_gpio_demux_handler(unsigned int irq, struct irq_desc *desc)
}
}
} while (loop);
chained_irq_exit(chip, desc);
}
static void pxa_ack_muxed_gpio(struct irq_data *d)