diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-24 19:00:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-24 19:00:36 -0500 |
commit | c946160e601c70a0ae0aa807461dd0232bcaf3a7 (patch) | |
tree | 0554732c1bb8ff38dac0ad143a6f455de11677f9 /arch | |
parent | 2cb5b6beef3a3357ef1f2a580d5e2284516efc39 (diff) | |
parent | abbea7187296a7fb316a55f2319438c2bf881f0a (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-at91rm9200/gpio.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/mach-at91rm9200/gpio.c b/arch/arm/mach-at91rm9200/gpio.c index a9f718bf8ba8..0e396feec468 100644 --- a/arch/arm/mach-at91rm9200/gpio.c +++ b/arch/arm/mach-at91rm9200/gpio.c | |||
@@ -274,8 +274,18 @@ static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs | |||
274 | gpio = &irq_desc[pin]; | 274 | gpio = &irq_desc[pin]; |
275 | 275 | ||
276 | while (isr) { | 276 | while (isr) { |
277 | if (isr & 1) | 277 | if (isr & 1) { |
278 | gpio->handle(pin, gpio, regs); | 278 | if (unlikely(gpio->disable_depth)) { |
279 | /* | ||
280 | * The core ARM interrupt handler lazily disables IRQs so | ||
281 | * another IRQ must be generated before it actually gets | ||
282 | * here to be disabled on the GPIO controller. | ||
283 | */ | ||
284 | gpio_irq_mask(pin); | ||
285 | } | ||
286 | else | ||
287 | gpio->handle(pin, gpio, regs); | ||
288 | } | ||
279 | pin++; | 289 | pin++; |
280 | gpio++; | 290 | gpio++; |
281 | isr >>= 1; | 291 | isr >>= 1; |