forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-omap2/pm44xx.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * OMAP4+ Power Management Routines
34 *
45 * Copyright (C) 2010-2013 Texas Instruments, Inc.
56 * Rajendra Nayak <rnayak@ti.com>
67 * Santosh Shilimkar <santosh.shilimkar@ti.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/pm.h>
....@@ -131,18 +128,9 @@
131128 return 0;
132129 }
133130
134
- /*
135
- * Bootloader or kexec boot may have LOGICRETSTATE cleared
136
- * for some domains. This is the case when kexec booting from
137
- * Android kernels that support off mode for example.
138
- * Make sure it's set at least for core and per, otherwise
139
- * we currently will see lost GPIO interrupts for wlcore and
140
- * smsc911x at least if per hits retention during idle.
141
- */
142131 if (!strncmp(pwrdm->name, "core", 4) ||
143
- !strncmp(pwrdm->name, "l4per", 5) ||
144
- !strncmp(pwrdm->name, "wkup", 4))
145
- pwrdm_set_logic_retst(pwrdm, PWRDM_POWER_RET);
132
+ !strncmp(pwrdm->name, "l4per", 5))
133
+ pwrdm_set_logic_retst(pwrdm, PWRDM_POWER_OFF);
146134
147135 pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC);
148136 if (!pwrst)