]> www.infradead.org Git - linux.git/commitdiff
ARM: dts: samsung: exynos4210: enable polling
authorMateusz Majewski <m.majewski2@samsung.com>
Mon, 11 Sep 2023 13:34:14 +0000 (15:34 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 14 Sep 2023 08:05:21 +0000 (10:05 +0200)
It seems that thermal in Exynos 4210 is broken without this, as it will
never decrease cooling after increasing it.

Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
Link: https://lore.kernel.org/r/20230911133417.14042-1-m.majewski2@samsung.com
[krzk: fix comment coding style and line wrapping]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm/boot/dts/samsung/exynos4210.dtsi

index 0e27c3375e2e9b097e9cab3770597e8ff06ad94c..510e8665d1a2573af5bc7e44a0a49d40a2e9ae1c 100644 (file)
 };
 
 &cpu_thermal {
-       polling-delay-passive = <0>;
-       polling-delay = <0>;
+       /*
+        * Exynos 4210 supports thermal interrupts, but only for the rising
+        * threshold.  This means that polling is not needed for preventing
+        * overheating, but only for decreasing cooling when possible. Hence we
+        * poll with a high delay.  Ideally, we would disable polling for the
+        * first trip point, but this isn't really possible without outrageous
+        * hacks.
+        */
+       polling-delay-passive = <5000>;
+       polling-delay = <5000>;
 };
 
 &gic {