Re: [PATCH v2] thermal/drivers/mediatek/lvts_thermal: Return error in case of invalid efuse data

From: Daniel Lezcano
Date: Tue Jun 04 2024 - 13:47:30 EST


On 04/06/2024 18:46, Julien Panis wrote:
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: f5f633b18234 ("thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver")
Signed-off-by: Julien Panis <jpanis@xxxxxxxxxxxx>
---
Guard against invalid calibration data, following this discussion:
https://lore.kernel.org/all/ad047631-16b8-42ce-8a8d-1429e6af4517@xxxxxxxxxxxxx/
---

Applied for v6.10-rc3

Thanks

--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog