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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:44 +0000 (14:23 +0200)
commit251aabcb0b0925cc63f595a1d6d6485feb3119dd
treec0f31f83b3626860ff2d917a0592c92a1597f97e
parent2d7a9c09be642eb725c8d18be45060f44a871673
cpufreq: qcom-cpufreq-nvmem: fix reading of PVS Valid fuse

[ Upstream commit 4a8a77abf0e2b6468ba0281e33384cbec5fb476a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/qcom-cpufreq-nvmem.c