Commit 63369ca2 authored by Luca Weiss's avatar Luca Weiss Committed by Zheng Zengkai
Browse files

cpufreq: qcom-cpufreq-nvmem: fix reading of PVS Valid fuse

stable inclusion
from stable-v5.10.110
commit 091704a9a7f4611dae2f2332319bcf1e862d64a1
bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=091704a9a7f4611dae2f2332319bcf1e862d64a1



--------------------------------

[ Upstream commit 4a8a77ab ]

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: a8811ec7 ("cpufreq: qcom: Add support for krait based socs")
Signed-off-by: default avatarLuca Weiss <luca@z3ntu.xyz>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent a6c0d956
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment