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:
parent
9797389ec5
commit
65785c676b
@ -259,6 +259,7 @@ static int qcom_dload_reboot(struct notifier_block *this, unsigned long event,
|
||||
reboot_nb);
|
||||
|
||||
/* Clean shutdown, disable dump mode to allow normal restart */
|
||||
if (!poweroff->in_panic)
|
||||
set_download_mode(QCOM_DOWNLOAD_NODUMP);
|
||||
|
||||
if (cmd) {
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user