aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2006-09-19 05:04:18 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-09-25 05:25:32 -0400
commitcdf3f8e0387e81477dee72ecb2e3be28feac05c8 (patch)
tree6a2dd8f4b3afa374fce1e56d1d12446c2595f9c4
parent50dedf168c1afd23cbc6c4fd8429c9e931b4e813 (diff)
[ARM] 3836/1: S3C24XX: Clear both EINT and INT status before sleep
Clear both the EINT and INT status before going to sleep, otherwise we may end up being woken by something that was not set in our wakeup map. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/mach-s3c2410/pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/pm.c b/arch/arm/mach-s3c2410/pm.c
index 9402583a1294..b49a0b3b72b3 100644
--- a/arch/arm/mach-s3c2410/pm.c
+++ b/arch/arm/mach-s3c2410/pm.c
@@ -557,6 +557,8 @@ static int s3c2410_pm_enter(suspend_state_t state)
557 /* ack any outstanding external interrupts before we go to sleep */ 557 /* ack any outstanding external interrupts before we go to sleep */
558 558
559 __raw_writel(__raw_readl(S3C2410_EINTPEND), S3C2410_EINTPEND); 559 __raw_writel(__raw_readl(S3C2410_EINTPEND), S3C2410_EINTPEND);
560 __raw_writel(__raw_readl(S3C2410_INTPND), S3C2410_INTPND);
561 __raw_writel(__raw_readl(S3C2410_SRCPND), S3C2410_SRCPND);
560 562
561 /* call cpu specific preperation */ 563 /* call cpu specific preperation */
562 564