[PATCH v4 4/4] thermal: mediatek: add another get_temp ops for thermal sensors

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Fri Sep 9 01:37:03 PDT 2022


Il 09/09/22 09:36, Amjad Ouled-Ameur ha scritto:
> Provide thermal zone to read thermal sensor in the SoC. We can read all the
> thermal sensors value in the SoC by the node /sys/class/thermal/
> 
> In mtk_thermal_bank_temperature, return -EAGAIN instead of -EACCESS
> on the first read of sensor that often are bogus values.
> This can avoid following warning on boot:
> 
>    thermal thermal_zone6: failed to read out thermal zone (-13)
> 
> Signed-off-by: Michael Kao <michael.kao at mediatek.com>
> Signed-off-by: Hsin-Yi Wang <hsinyi at chromium.org>
> Signed-off-by: Amjad Ouled-Ameur <aouledameur at baylibre.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>





More information about the Linux-mediatek mailing list