This is a note to let you know that I've just added the patch titled

    ARM: LPC32xx: irq.c: Clear latched event

to the 3.0-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm-lpc32xx-irq.c-clear-latched-event.patch
and it can be found in the queue-3.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 94ed7830cba4dce57b18a2926b5d826bfd184bd6 Mon Sep 17 00:00:00 2001
From: Roland Stigge <[email protected]>
Date: Mon, 27 Feb 2012 17:28:02 +0100
Subject: ARM: LPC32xx: irq.c: Clear latched event

From: Roland Stigge <[email protected]>

commit 94ed7830cba4dce57b18a2926b5d826bfd184bd6 upstream.

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

Signed-off-by: Roland Stigge <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

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


Patches currently in stable-queue which might be from [email protected] are

queue-3.0/arm-lpc32xx-serial.c-hw-bug-workaround.patch
queue-3.0/arm-lpc32xx-fix-interrupt-controller-init.patch
queue-3.0/arm-lpc32xx-irq.c-clear-latched-event.patch
queue-3.0/arm-lpc32xx-fix-irq-on-gpi_28.patch
queue-3.0/arm-lpc32xx-serial.c-fixed-loop-limit.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to