linux_dsm_epyc7002/arch/arm/mach-exynos
Tomasz Figa 01601b3495 ARM: EXYNOS: Fix suspend/resume sequences
Due to recent consolidation of Exynos suspend and cpuidle code, some
parts of suspend and resume sequences are executed two times, once from
exynos_pm_syscore_ops and then from exynos_cpu_pm_notifier() and thus it
breaks suspend, at least on Exynos4-based boards. In addition, simple
core power down from a cpuidle driver could, in case of CPU 0 could
result in calling functions that are specific to suspend and deeper idle
states.

This patch fixes the issue by moving those operations outside the CPU PM
notifier into suspend and AFTR code paths. This leads to a bit of code
duplication, but allows additional code simplification, so in the end
more code is removed than added.

Fixes: 85f9f90808 ("ARM: EXYNOS: Use the cpu_pm notifier for pm")
Cc: Kukjin Kim <kgene.kim@samsung.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Olof Johansson <olof@lixom.net>
Cc: arm@kernel.org
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
[b.zolnierkie: ported patch over current changes]
[b.zolnierkie: fixed exynos_aftr_finisher() return value]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
2014-08-09 08:24:36 -07:00
..
include/mach ARM: EXYNOS: Refactored code for using PMU address via DT 2014-07-23 08:20:30 +09:00
common.h ARM: EXYNOS: Refactored code for using PMU address via DT 2014-07-23 08:20:30 +09:00
exynos-smc.S ARM: EXYNOS: Add support for secure monitor calls 2013-04-09 01:52:06 +09:00
exynos.c ARM: SoC device-tree changes for 3.17 2014-08-08 11:16:58 -07:00
firmware.c ARM: EXYNOS: Update secondary boot addr for secure mode 2014-07-08 08:03:49 +09:00
headsmp.S ARM: EXYNOS: Remove file path from comment section 2014-07-15 08:40:32 +09:00
hotplug.c ARM: SoC cleanups for 3.17 2014-08-08 11:00:26 -07:00
Kconfig ACPI and power management updates for 3.17-rc1 2014-08-06 20:34:19 -07:00
Makefile ARM: SoC driver changes 2014-06-02 16:35:49 -07:00
Makefile.boot ARM: dts: Add basic dts file for Samsung Trats board 2012-09-21 10:50:27 +09:00
mcpm-exynos.c ARM: SoC platform changes for 3.17 2014-08-08 11:14:29 -07:00
mfc.h ARM: SAMSUNG: Reorganize calls to reserve memory for MFC 2014-03-21 02:00:09 +09:00
platsmp.c ARM: SoC platform changes for 3.17 2014-08-08 11:14:29 -07:00
pm_domains.c ARM: EXYNOS: Remove regs-pmu.h header dependency from pm_domain 2014-07-15 08:40:32 +09:00
pm.c ARM: EXYNOS: Fix suspend/resume sequences 2014-08-09 08:24:36 -07:00
pmu.c ARM: EXYNOS: Refactored code for using PMU address via DT 2014-07-23 08:20:30 +09:00
regs-pmu.h ARM: EXYNOS: Refactored code for using PMU address via DT 2014-07-23 08:20:30 +09:00
regs-sys.h ARM: EXYNOS: Move SYSREG definition into sys-reg specific file 2014-07-15 08:40:31 +09:00
sleep.S ARM: l2c: exynos: convert to common l2c310 early resume functionality 2014-05-30 00:49:12 +01:00
smc.h ARM: EXYNOS: Add support for secure monitor calls 2013-04-09 01:52:06 +09:00