Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249989
b: refs/heads/master
c: 9802294
h: refs/heads/master
i:
  249987: 70a6570
v: v3
  • Loading branch information
Will Deacon committed May 11, 2011
1 parent 031c791 commit 7dbd6c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: adfed159ab71bff53ccac3013776580bc866d2ba
refs/heads/master: 98022940c2431025be3c95e50035d762c40f539d
9 changes: 6 additions & 3 deletions trunk/arch/arm/mach-tegra/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <linux/io.h>
#include <linux/gpio.h>

#include <asm/mach/irq.h>

#include <mach/iomap.h>
#include <mach/suspend.h>

Expand Down Expand Up @@ -221,8 +223,9 @@ static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
int port;
int pin;
int unmasked = 0;
struct irq_chip *chip = irq_desc_get_chip(desc);

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

bank = irq_get_handler_data(irq);

Expand All @@ -241,15 +244,15 @@ static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
*/
if (lvl & (0x100 << pin)) {
unmasked = 1;
desc->irq_data.chip->irq_unmask(&desc->irq_data);
chained_irq_exit(chip, desc);
}

generic_handle_irq(gpio_to_irq(gpio + pin));
}
}

if (!unmasked)
desc->irq_data.chip->irq_unmask(&desc->irq_data);
chained_irq_exit(chip, desc);

}

Expand Down

0 comments on commit 7dbd6c2

Please sign in to comment.