Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169064
b: refs/heads/master
c: ca02970
h: refs/heads/master
v: v3
  • Loading branch information
Alek Du authored and Linus Torvalds committed Dec 2, 2009
1 parent 74d38b7 commit a09ca8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 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: 974348435c6d7b65fd6d8857b4809b0ff208d323
refs/heads/master: ca0297015d4f117005718e01aa368875abcccbc5
11 changes: 1 addition & 10 deletions trunk/drivers/gpio/langwell_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,6 @@ static int lnw_irq_type(unsigned irq, unsigned type)

static void lnw_irq_unmask(unsigned irq)
{
struct lnw_gpio *lnw = get_irq_chip_data(irq);
u32 gpio = irq - lnw->irq_base;
u8 reg = gpio / 32;
void __iomem *gedr;

gedr = (void __iomem *)(&lnw->reg_base->GEDR[reg]);
writel(BIT(gpio % 32), gedr);
};

static void lnw_irq_mask(unsigned irq)
Expand Down Expand Up @@ -183,13 +176,11 @@ static void lnw_irq_handler(unsigned irq, struct irq_desc *desc)
gedr_v = readl(gedr);
if (!gedr_v)
continue;
for (gpio = reg*32; gpio < reg*32+32; gpio++) {
gedr_v = readl(gedr);
for (gpio = reg*32; gpio < reg*32+32; gpio++)
if (gedr_v & BIT(gpio % 32)) {
pr_debug("pin %d triggered\n", gpio);
generic_handle_irq(lnw->irq_base + gpio);
}
}
/* clear the edge detect status bit */
writel(gedr_v, gedr);
}
Expand Down

0 comments on commit a09ca8e

Please sign in to comment.