diff options
author | Anson Huang <Anson.Huang@freescale.com> | 2015-12-16 21:54:50 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:24:15 +0800 |
commit | 17d8f3f1f9eea0d69bf9cf24e3cb4bfa60e999bc (patch) | |
tree | 10f8026ab1e06fbed31fc4200d3aa444c70401be /arch/arm/mach-imx/mu.c | |
parent | 29e135fc0c6bd6bf42fa2f2d8d552c85aec3d0d2 (diff) |
MLK-12025 ARM: imx: M4 should be in RUN mode when resume from DSM
On i.MX7D, only when M4 enters STOP mode, system is able to enter DSM
mode where M4 power will be gated off. This is done by checking
a variable which records M4's power mode. However, when system
resume from DSM, M4 is re-enabled to RUN mode by A7, but the variable
is NOT updated accordingly, so next time system suspend, even
M4 is NOT in STOP mode, system can enter DSM mode, which is
unexpected and would cause bus-freq use count mismatch.
Fix this issue by reset M4 power mode to RUN mode when resume
from DSM.
Signed-off-by: Anson Huang <Anson.Huang@freescale.com>
(cherry picked from commit d22127a8f395edaf719a5bf4874cf22c5bdc8661)
Signed-off-by: Teo Hall <teo.hall@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/mu.c')
-rw-r--r-- | arch/arm/mach-imx/mu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mu.c b/arch/arm/mach-imx/mu.c index 7dbe3bfe24f3..ae502d9f6428 100644 --- a/arch/arm/mach-imx/mu.c +++ b/arch/arm/mach-imx/mu.c @@ -68,6 +68,11 @@ struct irq_domain *domain; static bool m4_in_stop; +void imx_mu_set_m4_run_mode(void) +{ + m4_in_stop = false; +} + bool imx_mu_is_m4_in_stop(void) { return m4_in_stop; |