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

Commit 6998d1fc authored by Prasad Sodagudi's avatar Prasad Sodagudi Committed by Gerrit - the friendly Code Review server
Browse files

power: reset: Remove secure boot mode check



Debug policy of secure devices take care of nullifying
the ram dumps in secure boot mode. So no need to check
about secure boot mode in reboot driver to enable
download feature.

Change-Id: Idb5c93aca630f0093fccc2997bf50e7958dfbf54
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 9c9a0530
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -533,7 +533,7 @@ static int msm_restart_probe(struct platform_device *pdev)
			pr_err("unable to map imem KASLR offset\n");
	}

	if (kaslr_imem_addr && scm_is_secure_device()) {
	if (kaslr_imem_addr) {
		__raw_writel(0xdead4ead, kaslr_imem_addr);
		__raw_writel(KASLR_OFFSET_BIT_MASK &
		(kimage_vaddr - KIMAGE_VADDR), kaslr_imem_addr + 4);
@@ -603,7 +603,6 @@ 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;

	download_mode = scm_is_secure_device();
	set_dload_mode(download_mode);

	return 0;