Skip to contentSkip to conversation

cpufreq: qoriq depends on thermal

PATCH Applied Arnd Bergmann 3 participants 3 messages Feb 26, 2016 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq: qoriq depends on thermal

The thermal subsystem can be a loadable module, so the qoriq driver has to be a module in that case as well in order to call of_cpufreq_cooling_register:

drivers/built-in.o: In function `qoriq_cpufreq_ready':
text+0x1f4548): undefined reference to `of_cpufreq_cooling_register'

This adds a dependency that clarifies how we can either build the driver when the cpu_thermal support is completely disabled, or how it depends on the thermal support to enforce the qoriq driver to be a module.

Fixes 8ae1702a0df5 ("cpufreq: qoriq: Register cooling device based on device tree")
---
 drivers/cpufreq/Kconfig | 1 +
 1 file changed, 1 insertion(+)

My patch is from Dec 22, and I had marked it as submitted, but can't find the email now, so maybe I forgot to send it out back then.

The problem still exists in linux-next, please apply the patch for 4.6.

drivers/cpufreq/Kconfig +1 -0
index dcb972a38fbc..ca05037dd565 100644
@@ -297,6 +297,7 @@ endif
 config QORIQ_CPUFREQ
 	tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
 	depends on OF && COMMON_CLK && (PPC_E500MC || ARM)
+	depends on !CPU_THERMAL || THERMAL=y
 	select CLK_QORIQ
 	help
 	  This adds the CPUFreq driver support for Freescale QorIQ SoCs
Signature · 1 line
2.7.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 27 lines · Arnd Bergmann

The thermal subsystem can be a loadable module, so the qoriq driver has to be a module in that case as well in order to call of_cpufreq_cooling_register:

drivers/built-in.o: In function `qoriq_cpufreq_ready':
text+0x1f4548): undefined reference to `of_cpufreq_cooling_register'

This adds a dependency that clarifies how we can either build the driver when the cpu_thermal support is completely disabled, or how it depends on the thermal support to enforce the qoriq driver to be a module.

Fixes 8ae1702a0df5 ("cpufreq: qoriq: Register cooling device based on device tree")
---
 drivers/cpufreq/Kconfig | 1 +
 1 file changed, 1 insertion(+)

My patch is from Dec 22, and I had marked it as submitted, but can't find the email now, so maybe I forgot to send it out back then.

The problem still exists in linux-next, please apply the patch for 4.6.

drivers/cpufreq/Kconfig +0 -0
index dcb972a38fbc..ca05037dd565 100644

drivers/cpufreq/Kconfig endif · line 303

Quoted 7 lines
drivers/cpufreq/Kconfig +1 -0
@@ -297,6 +297,7 @@ endif
 config QORIQ_CPUFREQ
 	tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
 	depends on OF && COMMON_CLK && (PPC_E500MC || ARM)
+	depends on !CPU_THERMAL || THERMAL=y
 	select CLK_QORIQ
 	help
 	  This adds the CPUFreq driver support for Freescale QorIQ SoCs
Signature · 1 line
viresh
#2 lore raw
Quoted 23 lines · Viresh Kumar
Quoted 22 lines · Arnd Bergmann

The thermal subsystem can be a loadable module, so the qoriq driver has to be a module in that case as well in order to call of_cpufreq_cooling_register:

drivers/built-in.o: In function `qoriq_cpufreq_ready':
text+0x1f4548): undefined reference to `of_cpufreq_cooling_register'

This adds a dependency that clarifies how we can either build the driver when the cpu_thermal support is completely disabled, or how it depends on the thermal support to enforce the qoriq driver to be a module.

Fixes 8ae1702a0df5 ("cpufreq: qoriq: Register cooling device based on device tree")
---
 drivers/cpufreq/Kconfig | 1 +
 1 file changed, 1 insertion(+)

My patch is from Dec 22, and I had marked it as submitted, but can't find the email now, so maybe I forgot to send it out back then.

The problem still exists in linux-next, please apply the patch for 4.6.

Quoted 14 lines

drivers/cpufreq/Kconfig endif · line 303

Quoted 12 lines
drivers/cpufreq/Kconfig +1 -0
index dcb972a38fbc..ca05037dd565 100644
@@ -297,6 +297,7 @@ endif
 config QORIQ_CPUFREQ
 	tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
 	depends on OF && COMMON_CLK && (PPC_E500MC || ARM)
+	depends on !CPU_THERMAL || THERMAL=y
 	select CLK_QORIQ
 	help
 	  This adds the CPUFreq driver support for Freescale QorIQ SoCs

Applied, thanks!