cpufreq: qcom: Don't add frequencies without an OPP
authorMatthias Kaehlcke <mka@chromium.org>
Tue, 15 Sep 2020 17:10:54 +0000 (10:10 -0700)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 16 Sep 2020 09:52:15 +0000 (15:22 +0530)
commitbc9b9c5ab9d8d16157737db539929d57562926e9
tree67a4e9812e49945f274ded875ab5f42d61af2ee7
parent49b59f4c358cf71cb4e413749cd855478547c2ca
cpufreq: qcom: Don't add frequencies without an OPP

The driver currently adds all frequencies from the hardware LUT to
the cpufreq table, regardless of whether the corresponding OPP
exists. This prevents devices from disabling certain OPPs through
the device tree and can result in CPU frequencies for which the
interconnect bandwidth can't be adjusted. Only add frequencies
with an OPP entry.

Fixes: 55538fbc79e9 ("cpufreq: qcom: Read voltage LUT and populate OPP")
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c