lkml.org 
[lkml]   [2012]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[ 07/68] ARM: LPC32xx: irq.c: Clear latched event
    3.0-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Roland Stigge <stigge@antcom.de>

    commit 94ed7830cba4dce57b18a2926b5d826bfd184bd6 upstream.

    This patch fixes the wakeup disable function by clearing latched events.

    Signed-off-by: Roland Stigge <stigge@antcom.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/arm/mach-lpc32xx/irq.c | 11 ++++++++++-
    1 file changed, 10 insertions(+), 1 deletion(-)

    --- a/arch/arm/mach-lpc32xx/irq.c
    +++ b/arch/arm/mach-lpc32xx/irq.c
    @@ -305,9 +305,18 @@ static int lpc32xx_irq_wake(struct irq_d

    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);




    \
     
     \ /
      Last update: 2012-03-09 21:11    [W:0.020 / U:30.072 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site