Merge "power: reset: Add qcom_dload command to poweroff driver"

This commit is contained in:
qctecmdr 2020-02-04 20:17:08 -08:00 • committed by Gerrit - the friendly Code Review server
commit d9393f0de2

View file

@ -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));