cpufreq: scpi: Add dependency on SCPI clk driver
PATCH 1/1 cpufreq: scpi: Add dependency on SCPI clk driver
The SCPI clk driver registers the virtual cpufreq device that kicks off initialisation of the SCPI cpufreq driver. Make the dependendency explicit in Kconfig.
--- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/Kconfig.arm +1 -1
@@ -201,7 +201,7 @@ config ARM_SA1110_CPUFREQ config ARM_SCPI_CPUFREQ tristate "SCPI based CPUfreq driver" - depends on ARM_BIG_LITTLE_CPUFREQ && ARM_SCPI_PROTOCOL + depends on ARM_BIG_LITTLE_CPUFREQ && ARM_SCPI_PROTOCOL && COMMON_CLK_SCPI help This adds the CPUfreq driver support for ARM big.LITTLE platforms using SCPI protocol for CPU power management.
Signature · 1 line
2.6.2
Viresh Kumar
maintainerPATCH 1/1 cpufreq: scpi: Add dependency on SCPI clk driver
Quoted 3 lines · Punit Agrawal
The SCPI clk driver registers the virtual cpufreq device that kicks off initialisation of the SCPI cpufreq driver. Make the dependendency explicit in
Kconfig.
That's not a dependency. Any other part of the kernel can add this *virtual* cpufreq device to get it going.
But, we do have dependency the other way round. clk_get() will fail for the cpufreq driver if SCPI-clk driver is missing and perhaps that's what you need to mention in the changelog.
Quoted 14 lines
Fixes 8def31034d03 ("cpufreq: arm_big_little: add SCPI interface driver")Signed-off-by Punit Agrawal <[email protected]>Cc Sudeep Holla <[email protected]>Cc Rafael J. Wysocki <[email protected]>Cc Viresh Kumar <[email protected]>--- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/Kconfig.arm +0
-0
drivers/cpufreq/Kconfig.arm config ARM_SA1110_CPUFREQ · line 204
Quoted 5 lines
drivers/cpufreq/Kconfig.arm +1
-1@@ -201,7 +201,7 @@ config ARM_SA1110_CPUFREQ config ARM_SCPI_CPUFREQ tristate "SCPI based CPUfreq driver" - depends on ARM_BIG_LITTLE_CPUFREQ && ARM_SCPI_PROTOCOL + depends on ARM_BIG_LITTLE_CPUFREQ && ARM_SCPI_PROTOCOL && COMMON_CLK_SCPI
This looks fine.
Signature · 1 line
viresh
PATCH 1/1 cpufreq: scpi: Add dependency on SCPI clk driver
Quoted 7 lines · Viresh Kumar
Quoted 3 lines · Punit Agrawal
The SCPI clk driver registers the virtual cpufreq device that kicks off initialisation of the SCPI cpufreq driver. Make the dependendency explicit in
Kconfig.That's not a dependency. Any other part of the kernel can add this *virtual* cpufreq device to get it going.
Any part can add the virtual cpufreq device but for scpi-cpufreq it is done by clk-scpi. I can re-word it for clarity.
Quoted 20 lines
But, we do have dependency the other way round.
clk_get()will fail for the cpufreq driver if SCPI-clk driver is missing and perhaps that's what you need to mention in the changelog.Quoted 15 lines
Fixes 8def31034d03 ("cpufreq: arm_big_little: add SCPI interface driver")Signed-off-by Punit Agrawal <[email protected]>Cc Sudeep Holla <[email protected]>Cc Rafael J. Wysocki <[email protected]>Cc Viresh Kumar <[email protected]>--- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/Kconfig.arm +0
-0@@ -201,7 +201,7 @@ config ARM_SA1110_CPUFREQ
Quoted 6 lines
drivers/cpufreq/Kconfig.arm config ARM_SA1110_CPUFREQ · line 204
Quoted 4 lines
drivers/cpufreq/Kconfig.arm +1
-1config ARM_SCPI_CPUFREQ tristate "SCPI based CPUfreq driver" - depends on ARM_BIG_LITTLE_CPUFREQ && ARM_SCPI_PROTOCOL + depends on ARM_BIG_LITTLE_CPUFREQ && ARM_SCPI_PROTOCOL && COMMON_CLK_SCPIThis looks fine.
I'll send an updated version to be picked up.
Thanks for taking a look.