[BPI-R2] Recent OpenWrt snapshots break temperature monitoring

It appears that recent snapshots of OpenWrt break CPU temperature monitoring:

22.03.02:

[email protected]:/sys# cat /sys/devices/virtual/thermal/thermal_zone0/temp
48961

SNAPSHOT:

[email protected]:/sys# cat /sys/devices/virtual/thermal/thermal_zone0/temp
0

Has anyone else noticed this?

Which kernelversion do you have there? My vanilla kernel 5.15.63 (mhm…time for upgrade :slight_smile: uptime 86 days ) does not have this bug.

Latest OpenWrt snapshot is 5.15.78. What are you running that uses a vanilla kernel?

I do not use openwrt,but i guess it is a openwrt specific issue (maybe due to backports)

mainline do not have this issue (or already fixed)

[email protected]:~# cat /sys/class/thermal/thermal_zone0/temp
34891
[email protected]:~# uname -a
Linux bpi-r2 5.15.80-bpi-r2-main #2 SMP Mon Nov 28 17:56:27 CET 2022 armv7l GNU/Linux

maybe you miss any config option (efuse or adc)?

do not see any related commits in drivers/thermal, drivers/nvmem, drivers/iio/adc between 5.15.78 and 5.15.80