Skip to content

Commit 4a8a77a

Browse files
z3ntuvireshk
authored andcommitted
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: a8811ec ("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>
1 parent b48cd0d commit 4a8a77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/qcom-cpufreq-nvmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static void get_krait_bin_format_b(struct device *cpu_dev,
130130
}
131131

132132
/* Check PVS_BLOW_STATUS */
133-
pte_efuse = *(((u32 *)buf) + 4);
133+
pte_efuse = *(((u32 *)buf) + 1);
134134
pte_efuse &= BIT(21);
135135
if (pte_efuse) {
136136
dev_dbg(cpu_dev, "PVS bin: %d\n", *pvs);

0 commit comments

Comments
 (0)