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

Commit a1eb4aa3 authored by Wei Li's avatar Wei Li Committed by Kishor PK
Browse files

angler: remove 'reboot edl' interface for security

Removed edl interface for security reasons.

BUG: 63100473
Change-Id: I9bdcb6b9794e2bc59c6557b6160cf964cc61265c
Git-commit: 6bf0876eb2a65282d796620ef2c640a86a61df82
Git-repo: https://android.googlesource.com/kernel/common.git


Signed-off-by: default avatarKishor PK <kpbhat@codeaurora.org>
parent f984f62a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -152,6 +152,7 @@ static bool get_dload_mode(void)
	return dload_mode_enabled;
}

#if 0
static void enable_emergency_dload_mode(void)
{
	int ret;
@@ -176,6 +177,7 @@ static void enable_emergency_dload_mode(void)
	if (ret)
		pr_err("Failed to set secure EDLOAD mode: %d\n", ret);
}
#endif

static int dload_set(const char *val, struct kernel_param *kp)
{
@@ -330,8 +332,10 @@ static void msm_restart_prepare(const char *cmd)
			if (!ret)
				__raw_writel(0x6f656d00 | (code & 0xff),
					     restart_reason);
#if 0
		} else if (!strncmp(cmd, "edl", 3)) {
			enable_emergency_dload_mode();
#endif
		} else {
			__raw_writel(0x77665501, restart_reason);
		}