]> Pileus Git - ~andy/linux/commit
ARM: SAMSUNG: Gracefully exit on suspend failure
authorAbhilash Kesavan <a.kesavan@samsung.com>
Fri, 25 Jan 2013 18:40:19 +0000 (10:40 -0800)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 31 Jan 2013 06:28:05 +0000 (22:28 -0800)
commitd3fcacf52d24ff1b12d994d9ddb7496f651294a2
tree551b22ecd840f7ad76d0f057de2db1d1c8be1437
parent8baaa265c5e8e378cb60164f47e24bf296a6d685
ARM: SAMSUNG: Gracefully exit on suspend failure

As per the Exynos5250 User Manual:
When there are pending interrupt events, WFI/WFE instruction are
ignored. To cancel the power-down sequence follow these steps:
1) Disable system power-down using CENTRAL_SEQ_CONFIGURATION register
2) Clear WAKEUP_STAT register
3) Enable interrupt service routine for CPU

Code for early wakeup for exynos already exists. Remove the panic
on suspend failure, clear the wakeup state register and return 1
from cpu_suspend to indicate a failed suspend (to a user daemon).

Older Samsung SoCs have similar panics and I have removed them all.
Haven't touched the S3C2410 sleep code.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/pm.c
arch/arm/mach-s3c24xx/pm-s3c2412.c
arch/arm/mach-s3c24xx/pm-s3c2416.c
arch/arm/mach-s3c64xx/pm.c
arch/arm/mach-s5p64x0/pm.c
arch/arm/mach-s5pv210/pm.c
arch/arm/plat-samsung/pm.c