Re: [PATCH] cpufreq: airoha: add CONFIG_OF dependency
From: Arnd Bergmann
Date: Mon Feb 03 2025 - 03:06:06 EST
On Wed, Jan 22, 2025, at 08:00, Viresh Kumar wrote:
>>
>> diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
>> index 704e84d00639..9e46960f6a86 100644
>> --- a/drivers/cpufreq/Kconfig.arm
>> +++ b/drivers/cpufreq/Kconfig.arm
>> @@ -18,6 +18,7 @@ config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM
>> config ARM_AIROHA_SOC_CPUFREQ
>> tristate "Airoha EN7581 SoC CPUFreq support"
>> depends on ARCH_AIROHA || COMPILE_TEST
>> + depends on OF
>> select PM_OPP
>> default ARCH_AIROHA
>> help
>
> Applied. Thanks.
>
It appears that something went wrong when you applied the fix,
the version that is in your tree now makes no sense:
--- a/drivers/cpufreq/Kconfig.arm
+++ b/drivers/cpufreq/Kconfig.arm
@@ -17,7 +17,7 @@ config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM
config ARM_AIROHA_SOC_CPUFREQ
tristate "Airoha EN7581 SoC CPUFreq support"
- depends on ARCH_AIROHA || COMPILE_TEST
+ depends on (ARCH_AIROHA && OF) || COMPILE_TEST
select PM_OPP
default ARCH_AIROHA
help
ARCH_AIROHA requires CONFIG_OF, so this change does nothing,
and the dependency is still missing for the COMPILE_TEST case.
Arnd