Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 7a4e63dd9ae137c578df264f52e9e6a61dcf99a5 Mon Sep 17 00:00:00 2001
- From: Ethan Chen <[email protected]>
- Date: Fri, 27 Feb 2015 18:31:48 -0800
- Subject: [PATCH] power: reset: Allow device to preserve memory on restart
- * Always perform a soft reset as this preserves memory contents,
- including pstore and other persistent memory.
- Change-Id: Ic9744a0bb4e3ddb2905331ca23c55bbfbb453133
- ---
- drivers/power/reset/msm-poweroff.c | 4 ++++
- 1 files changed, 2 insertions(+)
- diff --git a/drivers/power/reset/msm-poweroff.c b/drivers/power/reset/msm-poweroff.c
- index b10dc24730ac..7e04e78a35f5 100644
- --- a/drivers/power/reset/msm-poweroff.c
- +++ b/drivers/power/reset/msm-poweroff.c
- @@ -291,6 +291,10 @@ static void msm_restart_prepare(const char *cmd)
- strcmp(cmd, "userrequested")));
- }
- + need_warm_reset = true;
- +
- /* Hard reset the PMIC unless memory contents must be maintained. */
- if (need_warm_reset) {
- qpnp_pon_system_pwr_off(PON_POWER_OFF_WARM_RESET);
Advertisement
Add Comment
Please, Sign In to add comment