Skip to content
Commit 90d29da1 authored by Julien Panis's avatar Julien Panis Committed by Greg Kroah-Hartman
Browse files

thermal/drivers/mediatek/lvts_thermal: Return error in case of invalid efuse data

[ Upstream commit 72cacd06 ]

This patch prevents from registering thermal entries and letting the
driver misbehave if efuse data is invalid. A device is not properly
calibrated if the golden temperature is zero.

Fixes: f5f633b1

 ("thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver")
Signed-off-by: default avatarJulien Panis <jpanis@baylibre.com>
Reviewed-by: default avatarNicolas Pitre <npitre@baylibre.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240604-mtk-thermal-calib-check-v2-1-8f258254051d@baylibre.com
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 47a0fe77
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment