Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373643
b: refs/heads/master
c: 3513cde
h: refs/heads/master
i:
  373641: c50fc3d
  373639: 8c4c94b
v: v3
  • Loading branch information
Jon Hunter authored and Linus Walleij committed Apr 10, 2013
1 parent 209a0a8 commit 8a28a1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 60b18b9aa4daa616a8b360feb35d1bfe4d606019
refs/heads/master: 3513cdeccc647d41c4a9ff923af17deaaac04a66
14 changes: 7 additions & 7 deletions trunk/drivers/gpio/gpio-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
{
void __iomem *isr_reg = NULL;
u32 isr;
unsigned int i;
unsigned int bit;
struct gpio_bank *bank;
int unmasked = 0;
struct irq_chip *chip = irq_desc_get_chip(desc);
Expand Down Expand Up @@ -730,9 +730,9 @@ static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
if (!isr)
break;

for (i = 0; isr != 0; isr >>= 1, i++) {
if (!(isr & 1))
continue;
while (isr) {
bit = __ffs(isr);
isr &= ~(1 << bit);

/*
* Some chips can't respond to both rising and falling
Expand All @@ -741,10 +741,10 @@ static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
* to respond to the IRQ for the opposite direction.
* This will be indicated in the bank toggle_mask.
*/
if (bank->toggle_mask & (1 << i))
_toggle_gpio_edge_triggering(bank, i);
if (bank->toggle_mask & (1 << bit))
_toggle_gpio_edge_triggering(bank, bit);

generic_handle_irq(irq_find_mapping(bank->domain, i));
generic_handle_irq(irq_find_mapping(bank->domain, bit));
}
}
/* if bank has any level sensitive GPIO pin interrupt
Expand Down

0 comments on commit 8a28a1c

Please sign in to comment.