| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * OMAP4+ Power Management Routines |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2010-2013 Texas Instruments, Inc. |
|---|
| 5 | 6 | * Rajendra Nayak <rnayak@ti.com> |
|---|
| 6 | 7 | * 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. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/pm.h> |
|---|
| .. | .. |
|---|
| 131 | 128 | return 0; |
|---|
| 132 | 129 | } |
|---|
| 133 | 130 | |
|---|
| 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 | | - */ |
|---|
| 142 | 131 | 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); |
|---|
| 146 | 134 | |
|---|
| 147 | 135 | pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC); |
|---|
| 148 | 136 | if (!pwrst) |
|---|