mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
power: reset: Use warm reset for dload mode
dload mode requires memory contents to be maintained, so we have to use warm reset during reboot. Change-Id: Idb4a01685e7164cc6a5272d0287934bc6fe6307f Signed-off-by: Qing Chang <a21550@motorola.com> Reviewed-on: https://gerrit.mot.com/1520641 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dong-Hua Yan <a18317@motorola.com> Reviewed-by: Qing Chang <qing@motorola.com> Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1778585 Reviewed-by: Huosheng Liao <liaohs@motorola.com>
This commit is contained in:
parent
45f6f796b2
commit
a7c7f70bb5
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ static void msm_restart_prepare(const char *cmd)
|
|||
pr_info("Forcing a warm reset of the system\n");
|
||||
|
||||
/* Hard reset the PMIC unless memory contents must be maintained. */
|
||||
if (force_warm_reboot || in_panic)
|
||||
if (force_warm_reboot || need_warm_reset || in_panic)
|
||||
qpnp_pon_system_pwr_off(PON_POWER_OFF_WARM_RESET);
|
||||
else
|
||||
qpnp_pon_system_pwr_off(PON_POWER_OFF_HARD_RESET);
|
||||
|
|
|
|||
Loading…
Reference in a new issue