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

Commit 24499b63 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

msm: thermal: Ignore thermal bite for secure device



KTM triggers a secure watchdog bite, when temperature reaches very high
threshold. In the secure device this call is not supported.

Avoid triggering the watchdog bite, on a secure device. This bite is
triggered in KTM for debug purpose to save the software state.
In the latest hardware, the tsens controller is capable of initiating a
hardware reset after saving the software state. So this feature is used
only to print the tsens ID which crossed the very high threshold.

Change-Id: Iacef4b64e16f9c2d9789d8faba474429dfcecd4e
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent 4a86c2f3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2857,6 +2857,9 @@ static void msm_thermal_bite(int zone_id, int temp)
		pr_err("Tsens:%d reached temperature:%d. System reset\n",
			tsens_id, temp);
	}
	/* If it is a secure device ignore triggering the thermal bite. */
	if (scm_is_secure_device())
		return;
	if (!is_scm_armv8()) {
		scm_call_atomic1(SCM_SVC_BOOT, THERM_SECURE_BITE_CMD, 0);
	} else {