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

Commit 6b8a0f7a authored by Prasad Sodagudi's avatar Prasad Sodagudi
Browse files

power: reset: Download mode is not supported in secure boot



Currently msmpower off driver is not checking whether device
is in secure boot or not. So use generic API scm_is_secure_device()
and take appropriate decision to enable download feature.

Change-Id: Ic7bbe1f7c9b839ad5d1d07a6583f6a1b76bf8962
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent ea642513
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -571,6 +571,7 @@ skip_sysfs_create:
	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();