]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: an7583: adjust thermal polling delays 24337/head
authorYubo Zhang <zyb_1998@outlook.com>
Tue, 21 Jul 2026 06:51:09 +0000 (14:51 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 22 Jul 2026 15:20:30 +0000 (17:20 +0200)
The CPU thermal zone in an7583.dtsi sets the polling-delay-passive to
10000 ms while the polling-delay is 5000 ms. The thermal driver rejects
zones whose passive polling delay is greater than the regular polling
delay, causing thermal_zone0 registration to fail with -EINVAL.

Reduce the passive polling delay to 1000 ms to fix thermal_zone0
registration.

Boot log:
thermal_sys: Failed to register thermal zone cpu-thermal: -22
... register thermal zone sensor failed
... probe with driver airoha-thermal failed with error -22

Signed-off-by: Yubo Zhang <zyb_1998@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/24337
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/airoha/dts/an7583.dtsi

index d8c3ec7ec834fbd24d30134faefa85fe46bf25a7..991054f850fbffc9468157de9031994f6da76077 100644 (file)
 
        thermal-zones {
                cpu_thermal: cpu-thermal {
-                       polling-delay-passive = <10000>;
+                       polling-delay-passive = <1000>;
                        polling-delay = <5000>;
 
                        thermal-sensors = <&thermal 0>;