Re: [v7,3/3] thermal: mediatek: add another get_temp ops for thermal sensors

2021-04-09 Thread Daniel Lezcano
On 16/03/2021 08:01, Michael Kao wrote: > 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 ofte

[v7,3/3] thermal: mediatek: add another get_temp ops for thermal sensors

2021-03-16 Thread Michael Kao
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