* [PATCH 00/10] thermal: Remove "cooling-{min|max}-level" properties
@ 2018-02-09 8:58 Viresh Kumar
2018-02-09 8:58 ` [PATCH 02/10] ARM: dts: omap: Remove "cooling-{min|max}-level" for CPU nodes Viresh Kumar
0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2018-02-09 8:58 UTC (permalink / raw)
To: Rafael Wysocki, Benoît Cousson, Carlo Caione, Chen-Yu Tsai,
Eduardo Valentin, Kevin Hilman, Krzysztof Kozlowski, Kukjin Kim,
Mark Rutland, Matthias Brugger, Maxime Ripard, Rob Herring,
Tony Lindgren, Wei Xu, Zhang Rui
Cc: devicetree, linux-samsung-soc, Vincent Guittot, linux-pm,
Viresh Kumar, daniel.lezcano, linux-kernel, linux-mediatek,
linux-amlogic, linux-omap, linux-arm-kernel
The "cooling-min-level" and "cooling-max-level" properties are not
parsed by any part of the kernel currently and the max cooling state of
a cooling devices is found by cooling-device's driver itself.
Also note that a very small number of platforms that support cooling
devices currently contain these properties in their dts files. Most of
them don't specify them (as no one is going to use them anyway).
Only two type of cooling devices are using these properties currently:
cpu-cooling and gpio-fan. This series first updates all the dts files to
not specify the min/max cooling states and then removes the bindings.
The maintainers are requested to apply the relevant patches to their
trees directly as there is no dependency between the patches.
--
viresh
Viresh Kumar (10):
ARM: dts: exynos: Remove "cooling-{min|max}-level" for CPU nodes
ARM: dts: omap: Remove "cooling-{min|max}-level" for CPU nodes
ARM: dts: mt7623: Remove "cooling-{min|max}-level" for CPU nodes
ARM: dts: sun[4-7]i: Remove "cooling-{min|max}-level" for CPU nodes
ARM64: dts: hi6220: Remove "cooling-{min|max}-level" for CPU nodes
ARM64: dts: meson: Remove "cooling-{min|max}-level" for CPU nodes
ARM: dts: gemini: Remove "cooling-{min|max}-level" for gpio-fan node
ARM64: dts: meson: Remove "cooling-{min|max}-level" for gpio-fan node
dt-bindings: cpufreq-dt: Remove "cooling-{min|max}-level" properties
dt-bindings: thermal: Remove "cooling-{min|max}-level" properties
Documentation/devicetree/bindings/cpufreq/cpufreq-dt.txt | 4 ----
.../devicetree/bindings/cpufreq/cpufreq-mediatek.txt | 4 ----
Documentation/devicetree/bindings/thermal/thermal.txt | 16 +---------------
arch/arm/boot/dts/dra7.dtsi | 2 --
arch/arm/boot/dts/exynos4210.dtsi | 2 --
arch/arm/boot/dts/exynos4412.dtsi | 2 --
arch/arm/boot/dts/exynos5250.dtsi | 2 --
arch/arm/boot/dts/exynos5420-cpus.dtsi | 16 ----------------
arch/arm/boot/dts/exynos5422-cpus.dtsi | 16 ----------------
arch/arm/boot/dts/gemini-dlink-dns-313.dts | 2 --
arch/arm/boot/dts/mt7623.dtsi | 2 --
arch/arm/boot/dts/omap443x.dtsi | 2 --
arch/arm/boot/dts/omap4460.dtsi | 2 --
arch/arm/boot/dts/omap5.dtsi | 2 --
arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 1 -
arch/arm/boot/dts/sun4i-a10.dtsi | 2 --
arch/arm/boot/dts/sun5i-a13.dtsi | 2 --
arch/arm/boot/dts/sun6i-a31.dtsi | 2 --
arch/arm/boot/dts/sun7i-a20.dtsi | 2 --
arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 6 ------
arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 2 --
21 files changed, 1 insertion(+), 90 deletions(-)
--
2.15.0.194.g9af6a3dea062
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 02/10] ARM: dts: omap: Remove "cooling-{min|max}-level" for CPU nodes
2018-02-09 8:58 [PATCH 00/10] thermal: Remove "cooling-{min|max}-level" properties Viresh Kumar
@ 2018-02-09 8:58 ` Viresh Kumar
2018-02-12 17:17 ` Tony Lindgren
0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2018-02-09 8:58 UTC (permalink / raw)
To: Rafael Wysocki, Benoît Cousson, Tony Lindgren, Rob Herring,
Mark Rutland
Cc: Viresh Kumar, linux-pm, Vincent Guittot, Eduardo Valentin,
Zhang Rui, linux-arm-kernel, devicetree, daniel.lezcano,
linux-omap, linux-kernel
The "cooling-min-level" and "cooling-max-level" properties are not
parsed by any part of the kernel currently and the max cooling state of
a CPU cooling device is found by referring to the cpufreq table instead.
Remove the unused properties from the CPU nodes.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
arch/arm/boot/dts/dra7.dtsi | 2 --
arch/arm/boot/dts/omap443x.dtsi | 2 --
arch/arm/boot/dts/omap4460.dtsi | 2 --
arch/arm/boot/dts/omap5.dtsi | 2 --
4 files changed, 8 deletions(-)
diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
index e4a420f16800..f4ddd86f2c77 100644
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -92,8 +92,6 @@
clock-latency = <300000>; /* From omap-cpufreq driver */
/* cooling options */
- cooling-min-level = <0>;
- cooling-max-level = <2>;
#cooling-cells = <2>; /* min followed by max */
vbb-supply = <&abb_mpu>;
diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/arm/boot/dts/omap443x.dtsi
index 03c8ad91ddac..cbcdcb4e7d1c 100644
--- a/arch/arm/boot/dts/omap443x.dtsi
+++ b/arch/arm/boot/dts/omap443x.dtsi
@@ -24,8 +24,6 @@
clock-latency = <300000>; /* From legacy driver */
/* cooling options */
- cooling-min-level = <0>;
- cooling-max-level = <3>;
#cooling-cells = <2>; /* min followed by max */
};
};
diff --git a/arch/arm/boot/dts/omap4460.dtsi b/arch/arm/boot/dts/omap4460.dtsi
index c43f2a2d0a1e..ad97493e4e46 100644
--- a/arch/arm/boot/dts/omap4460.dtsi
+++ b/arch/arm/boot/dts/omap4460.dtsi
@@ -22,8 +22,6 @@
clock-latency = <300000>; /* From legacy driver */
/* cooling options */
- cooling-min-level = <0>;
- cooling-max-level = <2>;
#cooling-cells = <2>; /* min followed by max */
};
};
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 35d4298da83d..511606c17a04 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -55,8 +55,6 @@
clock-latency = <300000>; /* From omap-cpufreq driver */
/* cooling options */
- cooling-min-level = <0>;
- cooling-max-level = <2>;
#cooling-cells = <2>; /* min followed by max */
};
cpu@1 {
--
2.15.0.194.g9af6a3dea062
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 02/10] ARM: dts: omap: Remove "cooling-{min|max}-level" for CPU nodes
2018-02-09 8:58 ` [PATCH 02/10] ARM: dts: omap: Remove "cooling-{min|max}-level" for CPU nodes Viresh Kumar
@ 2018-02-12 17:17 ` Tony Lindgren
2018-02-12 17:18 ` Tony Lindgren
0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2018-02-12 17:17 UTC (permalink / raw)
To: Viresh Kumar
Cc: Rafael Wysocki, Benoît Cousson, Rob Herring, Mark Rutland,
linux-pm, Vincent Guittot, Eduardo Valentin, Zhang Rui,
linux-arm-kernel, devicetree, daniel.lezcano, linux-omap,
linux-kernel
* Viresh Kumar <viresh.kumar@linaro.org> [180209 00:59]:
> The "cooling-min-level" and "cooling-max-level" properties are not
> parsed by any part of the kernel currently and the max cooling state of
> a CPU cooling device is found by referring to the cpufreq table instead.
>
> Remove the unused properties from the CPU nodes.
It seem this patch needs to wait before we can apply, right?
Regards,
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 02/10] ARM: dts: omap: Remove "cooling-{min|max}-level" for CPU nodes
2018-02-12 17:17 ` Tony Lindgren
@ 2018-02-12 17:18 ` Tony Lindgren
0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2018-02-12 17:18 UTC (permalink / raw)
To: Viresh Kumar
Cc: Rafael Wysocki, Benoît Cousson, Rob Herring, Mark Rutland,
linux-pm, Vincent Guittot, Eduardo Valentin, Zhang Rui,
linux-arm-kernel, devicetree, daniel.lezcano, linux-omap,
linux-kernel
* Tony Lindgren <tony@atomide.com> [180212 09:17]:
> * Viresh Kumar <viresh.kumar@linaro.org> [180209 00:59]:
> > The "cooling-min-level" and "cooling-max-level" properties are not
> > parsed by any part of the kernel currently and the max cooling state of
> > a CPU cooling device is found by referring to the cpufreq table instead.
> >
> > Remove the unused properties from the CPU nodes.
>
> It seem this patch needs to wait before we can apply, right?
Oh sorry it's already unused :) Will pick this up for v4.17 thanks.
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-12 17:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-09 8:58 [PATCH 00/10] thermal: Remove "cooling-{min|max}-level" properties Viresh Kumar
2018-02-09 8:58 ` [PATCH 02/10] ARM: dts: omap: Remove "cooling-{min|max}-level" for CPU nodes Viresh Kumar
2018-02-12 17:17 ` Tony Lindgren
2018-02-12 17:18 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).