Skip to content

Commit a374f28

Browse files
jhovoldvireshk
authored andcommitted
cpufreq: fix compile-test defaults
Commit 3f66425 ("cpufreq: Enable COMPILE_TEST on Arm drivers") enabled compile testing of most Arm CPUFreq drivers but left the existing default values unchanged so that many drivers are enabled by default whenever COMPILE_TEST is selected. This specifically results in the S3C64XX CPUFreq driver being enabled and initialised during boot of non-S3C64XX platforms with the following error logged: cpufreq: Unable to obtain ARMCLK: -2 Commit d4f610a ("cpufreq: Do not enable by default during compile testing") recently fixed most of the default values, but two entries were missed and two could use a more specific default condition. Fix the default values for drivers that can be compile tested and that should be enabled by default when not compile testing. Fixes: 3f66425 ("cpufreq: Enable COMPILE_TEST on Arm drivers") Cc: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 2b8e6b5 commit a374f28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/cpufreq/Kconfig.arm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ config ARM_VEXPRESS_SPC_CPUFREQ
7676
config ARM_BRCMSTB_AVS_CPUFREQ
7777
tristate "Broadcom STB AVS CPUfreq driver"
7878
depends on (ARCH_BRCMSTB && !ARM_SCMI_CPUFREQ) || COMPILE_TEST
79-
default ARCH_BRCMSTB
79+
default y if ARCH_BRCMSTB && !ARM_SCMI_CPUFREQ
8080
help
8181
Some Broadcom STB SoCs use a co-processor running proprietary firmware
8282
("AVS") to handle voltage and frequency scaling. This driver provides
@@ -88,7 +88,7 @@ config ARM_HIGHBANK_CPUFREQ
8888
tristate "Calxeda Highbank-based"
8989
depends on ARCH_HIGHBANK || COMPILE_TEST
9090
depends on CPUFREQ_DT && REGULATOR && PL320_MBOX
91-
default m
91+
default m if ARCH_HIGHBANK
9292
help
9393
This adds the CPUFreq driver for Calxeda Highbank SoC
9494
based boards.
@@ -133,7 +133,7 @@ config ARM_MEDIATEK_CPUFREQ
133133
config ARM_MEDIATEK_CPUFREQ_HW
134134
tristate "MediaTek CPUFreq HW driver"
135135
depends on ARCH_MEDIATEK || COMPILE_TEST
136-
default m
136+
default m if ARCH_MEDIATEK
137137
help
138138
Support for the CPUFreq HW driver.
139139
Some MediaTek chipsets have a HW engine to offload the steps
@@ -256,7 +256,7 @@ config ARM_TEGRA194_CPUFREQ
256256
tristate "Tegra194 CPUFreq support"
257257
depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || (64BIT && COMPILE_TEST)
258258
depends on TEGRA_BPMP
259-
default ARCH_TEGRA
259+
default ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC
260260
help
261261
This adds CPU frequency driver support for Tegra194 SOCs.
262262

0 commit comments

Comments
 (0)