summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>2017-07-19 16:44:19 +0530
committerManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>2017-07-21 17:21:53 +0530
commita72f768c6b77f94bc7a3d0861eaab93191700aef (patch)
treef292dae38e69e87135e063bc691520afcb5dfc04 /drivers/thermal
parent7aa065cbc4f86125895f6c7c6a5ac1fdda231505 (diff)
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: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/msm_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/msm_thermal.c b/drivers/thermal/msm_thermal.c
index b1f4c3f27111..4b586f62cdc7 100644
--- a/drivers/thermal/msm_thermal.c
+++ b/drivers/thermal/msm_thermal.c
@@ -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);