* [PATCH] cpufreq: scpi: Add dependency on SCPI clk driver
@ 2015-11-17 18:14 Punit Agrawal
2015-11-18 5:19 ` Viresh Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Punit Agrawal @ 2015-11-17 18:14 UTC (permalink / raw)
To: sudeep.holla
Cc: linux-pm, linux-arm-kernel, arnd, Punit Agrawal,
Rafael J . Wysocki, Viresh Kumar
The SCPI clk driver registers the virtual cpufreq device that kicks off
initialisation of the SCPI cpufreq driver. Make the dependendency
explicit in Kconfig.
Fixes: 8def31034d03 ("cpufreq: arm_big_little: add SCPI interface driver")
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
---
drivers/cpufreq/Kconfig.arm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
index 1582c1c..dadfdd4 100644
--- a/drivers/cpufreq/Kconfig.arm
+++ b/drivers/cpufreq/Kconfig.arm
@@ -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.
--
2.6.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] cpufreq: scpi: Add dependency on SCPI clk driver
2015-11-17 18:14 [PATCH] cpufreq: scpi: Add dependency on SCPI clk driver Punit Agrawal
@ 2015-11-18 5:19 ` Viresh Kumar
2015-11-18 13:06 ` Punit Agrawal
0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2015-11-18 5:19 UTC (permalink / raw)
To: Punit Agrawal
Cc: sudeep.holla, linux-pm, linux-arm-kernel, arnd,
Rafael J . Wysocki
On 17-11-15, 18:14, Punit Agrawal wrote:
> 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.
> Fixes: 8def31034d03 ("cpufreq: arm_big_little: add SCPI interface driver")
> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
> Cc: Sudeep Holla <sudeep.holla@arm.com>
> Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
> Cc: Viresh Kumar <viresh.kumar@linaro.org>
> ---
> drivers/cpufreq/Kconfig.arm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
> index 1582c1c..dadfdd4 100644
> --- a/drivers/cpufreq/Kconfig.arm
> +++ b/drivers/cpufreq/Kconfig.arm
> @@ -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.
--
viresh
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] cpufreq: scpi: Add dependency on SCPI clk driver
2015-11-18 5:19 ` Viresh Kumar
@ 2015-11-18 13:06 ` Punit Agrawal
0 siblings, 0 replies; 3+ messages in thread
From: Punit Agrawal @ 2015-11-18 13:06 UTC (permalink / raw)
To: Viresh Kumar
Cc: sudeep.holla, linux-pm, linux-arm-kernel, arnd,
Rafael J . Wysocki
Viresh Kumar <viresh.kumar@linaro.org> writes:
> On 17-11-15, 18:14, Punit Agrawal wrote:
>> 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.
>
> 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.
>
>> Fixes: 8def31034d03 ("cpufreq: arm_big_little: add SCPI interface driver")
>> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
>> Cc: Sudeep Holla <sudeep.holla@arm.com>
>> Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
>> Cc: Viresh Kumar <viresh.kumar@linaro.org>
>> ---
>> drivers/cpufreq/Kconfig.arm | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
>> index 1582c1c..dadfdd4 100644
>> --- a/drivers/cpufreq/Kconfig.arm
>> +++ b/drivers/cpufreq/Kconfig.arm
>> @@ -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.
I'll send an updated version to be picked up.
Thanks for taking a look.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-18 13:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17 18:14 [PATCH] cpufreq: scpi: Add dependency on SCPI clk driver Punit Agrawal
2015-11-18 5:19 ` Viresh Kumar
2015-11-18 13:06 ` Punit Agrawal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox