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

Commit e64ad268 authored by Elliot Berman's avatar Elliot Berman
Browse files

power: reset: Add qcom_dload command to poweroff driver



Add qcom_dload command to poweroff driver to force a warm restart into
CrashDump mode.

Change-Id: Idb1ab86801c24a9b86604e1f890fec01e7827ff2
Signed-off-by: default avatarElliot Berman <eberman@codeaurora.org>
parent f22a034b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -402,6 +402,9 @@ static void msm_restart_prepare(const char *cmd)
	 * Kill download mode if master-kill switch is set
	 */

	if (cmd != NULL && !strcmp(cmd, "qcom_dload"))
		restart_mode = RESTART_DLOAD;

	set_dload_mode(download_mode &&
			(in_panic || restart_mode == RESTART_DLOAD));