Revert "power: reset: qcom-dload-mode: perform a warm nodump reboot only if in panic"

This reverts commit a7b520c3da.

Change-Id: I44da5255f68a07d058f156c90510874a76517272
This commit is contained in:
Davide Garberi 2024-02-15 00:26:37 +01:00
parent 9797389ec5
commit 65785c676b

View File

@ -259,7 +259,8 @@ static int qcom_dload_reboot(struct notifier_block *this, unsigned long event,
reboot_nb);
/* Clean shutdown, disable dump mode to allow normal restart */
set_download_mode(QCOM_DOWNLOAD_NODUMP);
if (!poweroff->in_panic)
set_download_mode(QCOM_DOWNLOAD_NODUMP);
if (cmd) {
if (!strcmp(cmd, "edl")) {
@ -270,7 +271,7 @@ static int qcom_dload_reboot(struct notifier_block *this, unsigned long event,
msm_enable_dump_mode(true);
}
if (poweroff->in_panic)
if (current_download_mode != QCOM_DOWNLOAD_NODUMP)
reboot_mode = REBOOT_WARM;
return NOTIFY_OK;