regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks

From: Frank Wunderlich
Date: Thu Aug 31 2023 - 05:25:27 EST


Hi,

The commit 33140e668b10 "thermal/drivers/mediatek: Control buffer enablement tweaks" is merged between 6.3 and 6.4 and causes a regression where temperature cannot be read correctly at least for mt7986/Bpi-R3.

bpi-r3 ~ # cat /sys/class/thermal/thermal_zone0/temp
-274000

after reverting the commit and fixing some build-errors in 6.5-rc7 because new members used in mt8365_thermal_data too, we can read temperature on mt7986 again.

i guess reverting the commit is not the right way, so i ask here for a better solution

regards Frank