[PATCH 0/2] thermal: qcom: tsens: fix temperature handling
From: Priyansh Jain
Date: Thu Apr 30 2026 - 01:45:48 EST
This series fixes multiple issues in the Qualcomm TSENS thermal driver
related to temperature sampling and trip threshold handling.
Patch 1 updates the temperature read path to atomically sample the
temperature value along with its valid bit, in accordance with hardware
programming guidelines. It also implements the recommended retry and
fallback behavior to avoid incorrect readings during transient hardware
update windows.
Patch 2 widens the software trip temperature limits to match the full
hardware-supported range. This prevents repeated threshold
reprogramming and interrupt storms when devices operate beyond the
previously clamped limits on newer chipsets, while preserving behavior
for platforms operating within the original range.
Priyansh Jain (2):
thermal: qcom: tsens: atomic temperature read with hardware-guided
retries
thermal: qcom: tsens: widen temperature limits to match hardware range
drivers/thermal/qcom/tsens-v1.c | 6 +-
drivers/thermal/qcom/tsens-v2.c | 10 +--
drivers/thermal/qcom/tsens.c | 118 +++++++++++++++++++++-----------
drivers/thermal/qcom/tsens.h | 22 ++----
4 files changed, 93 insertions(+), 63 deletions(-)
--
2.43.0