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

Commit 9d69cd78 authored by Akshay Adiga's avatar Akshay Adiga
Browse files

power: reset: Don't set dload_mode in kdump kernel



Kdump kernel needs to retain the dload type set by primary
kernel. Currenly dload type will be set to default value of fulldump.

Change-Id: I9f2a4f4b815166c86d103d2ef94c56c4005df1a3
Signed-off-by: default avatarAkshay Adiga <aadiga@codeaurora.org>
parent 62de385d
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
#include <linux/input/qpnp-power-on.h>
#include <linux/of_address.h>
#include <linux/syscore_ops.h>
#include <linux/crash_dump.h>

#include <asm/cacheflush.h>
#include <asm/system_misc.h>
@@ -292,7 +293,7 @@ static void msm_restart_prepare(const char *cmd)
	 * Write download mode flags if restart_mode says so
	 * Kill download mode if master-kill switch is set
	 */

	if (!is_kdump_kernel())
		set_dload_mode(download_mode &&
			(in_panic || restart_mode == RESTART_DLOAD));
#endif
@@ -694,7 +695,7 @@ static int msm_restart_probe(struct platform_device *pdev)

	if (scm_is_call_available(SCM_SVC_PWR, SCM_IO_DEASSERT_PS_HOLD) > 0)
		scm_deassert_ps_hold_supported = true;

	if (!is_kdump_kernel())
		set_dload_mode(download_mode);
	if (!download_mode)
		scm_disable_sdi();