Skip to content

Commit ff63282

Browse files
lumagvireshk
authored andcommitted
cpufreq: qcom-nvmem: also accept operating-points-v2-krait-cpu
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 <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Christian Marangi <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent a243a1e commit ff63282

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/cpufreq/qcom-cpufreq-nvmem.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ static int qcom_cpufreq_probe(struct platform_device *pdev)
322322
if (!np)
323323
return -ENOENT;
324324

325-
ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu");
325+
ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu") ||
326+
of_device_is_compatible(np, "operating-points-v2-krait-cpu");
326327
if (!ret) {
327328
of_node_put(np);
328329
return -ENOENT;

0 commit comments

Comments
 (0)