Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f99d7ad5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: reset: use hard resets by default for all restart commands"

parents 77680632 fb55b1fe
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -229,14 +229,8 @@ static void msm_restart_prepare(const char *cmd)
#endif

	if (qpnp_pon_check_hard_reset_stored()) {
		/* Set warm reset as true when device is in dload mode
		 *  or device doesn't boot up into recovery, bootloader or rtc.
		 */
		if (get_dload_mode() ||
			((cmd != NULL && cmd[0] != '\0') &&
			strcmp(cmd, "recovery") &&
			strcmp(cmd, "bootloader") &&
			strcmp(cmd, "rtc")))
		/* Set warm reset as true when device is in dload mode */
		if (get_dload_mode())
			need_warm_reset = true;
	} else {
		need_warm_reset = (get_dload_mode() ||