summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRam Chandrasekar <rkumbako@codeaurora.org>2017-02-10 15:14:50 -0700
committerRam Chandrasekar <rkumbako@codeaurora.org>2017-02-15 12:05:15 -0700
commit24499b633faccbf6fc15153c3b4613a7cccc9ede (patch)
treef1aa559c77ab4c7e593884e6cf31c2ec18d65fcf
parent4a86c2f3ccbb861cc50778cc4b67af153e99bf24 (diff)
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: Ram Chandrasekar <rkumbako@codeaurora.org>
-rw-r--r--drivers/thermal/msm_thermal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thermal/msm_thermal.c b/drivers/thermal/msm_thermal.c
index cc232ff9be9a..c8cbd078bb07 100644
--- a/drivers/thermal/msm_thermal.c
+++ b/drivers/thermal/msm_thermal.c
@@ -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 {