cpufreq: qcom-cpufreq-nvmem: fix reading of PVS Valid fuse
authorLuca Weiss <luca@z3ntu.xyz>
Sun, 30 Jan 2022 11:45:35 +0000 (12:45 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 Feb 2022 07:50:03 +0000 (13:20 +0530)
commit4a8a77abf0e2b6468ba0281e33384cbec5fb476a
treea0af4f1f37bea0c84e1a029f36f66b869d7575a8
parentb48cd0d12f8e3b5fc928ac84734e563eda8e430f
cpufreq: qcom-cpufreq-nvmem: fix reading of PVS Valid fuse

The fuse consists of 64 bits, with this statement we're supposed to get
the upper 32 bits but it actually read out of bounds and got 0 instead
of the desired value which lead to the "PVS bin not set." codepath being
run resetting our pvs value.

Fixes: a8811ec764f9 ("cpufreq: qcom: Add support for krait based socs")
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-nvmem.c