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

2021-01-10 Thread Nicolas Boichat
On Tue, Oct 13, 2020 at 6:24 PM 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

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

2020-10-13 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