cpufreq: qcom-nvmem: also accept operating-points-v2-krait-cpu
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 19 Oct 2023 10:50:09 +0000 (12:50 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 25 Oct 2023 10:20:53 +0000 (15:50 +0530)
the qcom-cpufreq-nvmem driver attempts to support both Qualcomm Kryo
(newer 64-bit ARMv8 cores) and Krait (older 32-bit ARMv7 cores). It
makes no sense to use 'operating-points-v2-kryo-cpu' compatibility node
for the Krait cores. Add support for 'operating-points-v2-krait-cpu'
compatibility string.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-nvmem.c

index ac8c36dc6a1f7bd92411fcfacd9d063daedac3bf..ba6720351a4ca73ff7e0292a106ba0336b107490 100644 (file)
@@ -322,7 +322,8 @@ static int qcom_cpufreq_probe(struct platform_device *pdev)
        if (!np)
                return -ENOENT;
 
-       ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu");
+       ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu") ||
+             of_device_is_compatible(np, "operating-points-v2-krait-cpu");
        if (!ret) {
                of_node_put(np);
                return -ENOENT;