]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.19.51/arm-omap2-pm33xx-core-do-not-turn-off-cefuse-as-ppa-.patch
Linux 4.19.51
[thirdparty/kernel/stable-queue.git] / releases / 4.19.51 / arm-omap2-pm33xx-core-do-not-turn-off-cefuse-as-ppa-.patch
CommitLineData
37554d48
SL
1From fb4c9de4016dba651888db475fca03eff3423b73 Mon Sep 17 00:00:00 2001
2From: Kabir Sahane <x0153567@ti.com>
3Date: Tue, 9 Apr 2019 08:05:17 -0700
4Subject: ARM: OMAP2+: pm33xx-core: Do not Turn OFF CEFUSE as PPA may be using
5 it
6
7[ Upstream commit 72aff4ecf1cb85a3c6e6b42ccbda0bc631b090b3 ]
8
9This area is used to store keys by HSPPA in case of AM438x SOC. Leave it
10active.
11
12Signed-off-by: Kabir Sahane <x0153567@ti.com>
13Signed-off-by: Andrew F. Davis <afd@ti.com>
14Signed-off-by: Tony Lindgren <tony@atomide.com>
15Signed-off-by: Sasha Levin <sashal@kernel.org>
16---
17 arch/arm/mach-omap2/pm33xx-core.c | 8 +++++---
18 1 file changed, 5 insertions(+), 3 deletions(-)
19
20diff --git a/arch/arm/mach-omap2/pm33xx-core.c b/arch/arm/mach-omap2/pm33xx-core.c
21index f4971e4a86b2..ca7026958d42 100644
22--- a/arch/arm/mach-omap2/pm33xx-core.c
23+++ b/arch/arm/mach-omap2/pm33xx-core.c
24@@ -51,10 +51,12 @@ static int amx3_common_init(void)
25
26 /* CEFUSE domain can be turned off post bootup */
27 cefuse_pwrdm = pwrdm_lookup("cefuse_pwrdm");
28- if (cefuse_pwrdm)
29- omap_set_pwrdm_state(cefuse_pwrdm, PWRDM_POWER_OFF);
30- else
31+ if (!cefuse_pwrdm)
32 pr_err("PM: Failed to get cefuse_pwrdm\n");
33+ else if (omap_type() != OMAP2_DEVICE_TYPE_GP)
34+ pr_info("PM: Leaving EFUSE power domain active\n");
35+ else
36+ omap_set_pwrdm_state(cefuse_pwrdm, PWRDM_POWER_OFF);
37
38 return 0;
39 }
40--
412.20.1
42