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

Commit a72f768c authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

msm: thermal: fix return value check for scm_is_secure_device() API



KTM ignores software secure watchdog bite if it is a secure device
since this call support is not there in secure device. But API
scm_is_secure_device() returns false if it is secure device,
true otherwise. But KTM return value check is wrong and leads to
no secure watchdog bite call from KTM for all targets.
Fix return value check properly in KTM to resolve this issue.

Change-Id: I1612fee3f57f6c2d27c4329abc2c563b7b1d8102
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 7aa065cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2858,7 +2858,7 @@ static void msm_thermal_bite(int zone_id, int temp)
			tsens_id, temp);
	}
	/* If it is a secure device ignore triggering the thermal bite. */
	if (scm_is_secure_device())
	if (!scm_is_secure_device())
		return;
	if (!is_scm_armv8()) {
		scm_call_atomic1(SCM_SVC_BOOT, THERM_SECURE_BITE_CMD, 0);