Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156824
b: refs/heads/master
c: 55b6019
h: refs/heads/master
v: v3
  • Loading branch information
Kevin Hilman committed Aug 5, 2009
1 parent c45ae1a commit 5cc0cf1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c5f80393b107b0c9e2a54b03b65d1880e706655
refs/heads/master: 55b6019ae29456e0f1e4087546bf4221c48622a0
6 changes: 6 additions & 0 deletions trunk/arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1189,13 +1189,19 @@ static void gpio_mask_irq(unsigned int irq)
struct gpio_bank *bank = get_irq_chip_data(irq);

_set_gpio_irqenable(bank, gpio, 0);
_set_gpio_triggering(bank, get_gpio_index(gpio), IRQ_TYPE_NONE);
}

static void gpio_unmask_irq(unsigned int irq)
{
unsigned int gpio = irq - IH_GPIO_BASE;
struct gpio_bank *bank = get_irq_chip_data(irq);
unsigned int irq_mask = 1 << get_gpio_index(gpio);
struct irq_desc *desc = irq_to_desc(irq);
u32 trigger = desc->status & IRQ_TYPE_SENSE_MASK;

if (trigger)
_set_gpio_triggering(bank, get_gpio_index(gpio), trigger);

/* For level-triggered GPIOs, the clearing must be done after
* the HW source is cleared, thus after the handler has run */
Expand Down

0 comments on commit 5cc0cf1

Please sign in to comment.