]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal/drivers/mediatek/lvts: Support MSR offset for 16-bit calibration data
authorLaura Nao <laura.nao@collabora.com>
Tue, 25 Nov 2025 16:16:56 +0000 (17:16 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 20 Jan 2026 19:41:49 +0000 (20:41 +0100)
commitb5468be97fcc8c78e6904f718a249231b9e54896
tree615f9818aca45f8064c6bad0ca04233487623604
parent6cd9a3b23a2d534fa582b78fd988fef7ed837ee9
thermal/drivers/mediatek/lvts: Support MSR offset for 16-bit calibration data

On MT8196/MT6991, per-sensor calibration data read from eFuses is
16-bit. When the LVTS controller operates in 16-bit mode, a fixed offset
must be added to MSR values during post-processing to obtain correct
temperature readings. Introduce a new msr_offset field in lvts_data,
program the respective register and apply the offset to the calibration
data read from eFuses.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Laura Nao <laura.nao@collabora.com>
Link: https://patch.msgid.link/20251125-mt8196-lvts-v4-v5-6-6db7eb903fb7@collabora.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/mediatek/lvts_thermal.c