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

Commit ec2c1980 authored by Prasad Sodagudi's avatar Prasad Sodagudi
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 f8d5a92b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -517,7 +517,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);
@@ -587,7 +587,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);
	if (!download_mode)
		scm_disable_sdi();