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

Commit 6e8583cd authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss Committed by Kyle Yan
Browse files

thermal: tsens: Enable TSENS controller health monitor



Temperature sensor (TSENS) driver health monitor periodically
sets a very low temperature threshold on the critical trip zone
and polls to check if the trip is set. This is done on a deferred
workqueue and helps provide indication on the health of the
TSENS controller.

Change-Id: I4b16db429fead5c731dec289f0360682c92775b8
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 3c541a8f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5417,10 +5417,10 @@ static int get_device_tree_data(struct platform_device *pdev,
		(!strcmp(id->compatible, "qcom,msm8994-tsens")) ||
		(!strcmp(id->compatible, "qcom,msm8992-tsens")))
		tmdev->tsens_type = TSENS_TYPE2;
	else if (!strcmp(id->compatible, "qcom,msm8996-tsens"))
	else if (!strcmp(id->compatible, "qcom,msm8996-tsens") ||
		(!strcmp(id->compatible, "qcom,msmcobalt-tsens")))
		tmdev->tsens_type = TSENS_TYPE3;
	else if (!strcmp(id->compatible, "qcom,msmtitanium-tsens") ||
		(!strcmp(id->compatible, "qcom,msmcobalt-tsens")) ||
		(!strcmp(id->compatible, "qcom,msmhamster-tsens"))) {
		tmdev->tsens_type = TSENS_TYPE3;
		tsens_poll_check = 0;