cpufreq: ARM_BRCMSTB_AVS_CPUFREQ cannot be used with ARM_SCMI_CPUFREQ
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Wed, 11 Oct 2023 16:46:54 +0000 (09:46 -0700)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 12 Oct 2023 03:43:56 +0000 (09:13 +0530)
The brcmstb-avs-cpufreq driver is considered a legacy driver and since
2018, ARCH_BRCMSTB systems have been using scmi-cpufreq. As a matter of
fact, when SCMI is in use, brcmstb-avs-cpufreq is unusable since the
SCMI firmware takes over, this can result in various problems, including
external synchronous aborts.

Express those constraints such that the driver is not enabled by default
when SCMI CPU frequency scaling is in use.

Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/Kconfig.arm

index 123b4bbfcfee19ccf419594f6cb3bde3a0457e99..207618043ee0ab94c2181730dabff0e1ce1154d6 100644 (file)
@@ -90,7 +90,7 @@ config ARM_VEXPRESS_SPC_CPUFREQ
 
 config ARM_BRCMSTB_AVS_CPUFREQ
        tristate "Broadcom STB AVS CPUfreq driver"
-       depends on ARCH_BRCMSTB || COMPILE_TEST
+       depends on (ARCH_BRCMSTB && !ARM_SCMI_CPUFREQ) || COMPILE_TEST
        default y
        help
          Some Broadcom STB SoCs use a co-processor running proprietary firmware