Skip to content

Commit

Permalink
ARM: LPC32xx: irq.c: Clear latched event
Browse files Browse the repository at this point in the history
This patch fixes the wakeup disable function by clearing latched events.

Signed-off-by: Roland Stigge <[email protected]>
Cc: [email protected]
  • Loading branch information
stigge committed Feb 27, 2012
1 parent 35dd0a7 commit 94ed783
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion arch/arm/mach-lpc32xx/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,18 @@ static int lpc32xx_irq_wake(struct irq_data *d, unsigned int state)

if (state)
eventreg |= lpc32xx_events[d->irq].mask;
else
else {
eventreg &= ~lpc32xx_events[d->irq].mask;

/*
* When disabling the wakeup, clear the latched
* event
*/
__raw_writel(lpc32xx_events[d->irq].mask,
lpc32xx_events[d->irq].
event_group->rawstat_reg);
}

__raw_writel(eventreg,
lpc32xx_events[d->irq].event_group->enab_reg);

Expand Down

0 comments on commit 94ed783

Please sign in to comment.