Skip to content

Commit 55aac9f

Browse files
asdfugilvireshk
authored andcommitted
cpufreq: apple-soc: Use 32-bit read for status register
Apple A7-A9(X) SoCs requires 32-bit reads on the status register. Newer SoCs accepts 32-bit reads on the status register as well. Signed-off-by: Nick Chan <towinchenmi@gmail.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 0755a93 commit 55aac9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/apple-soc-cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static unsigned int apple_soc_cpufreq_get_rate(unsigned int cpu)
122122
unsigned int pstate;
123123

124124
if (priv->info->cur_pstate_mask) {
125-
u64 reg = readq_relaxed(priv->reg_base + APPLE_DVFS_STATUS);
125+
u32 reg = readl_relaxed(priv->reg_base + APPLE_DVFS_STATUS);
126126

127127
pstate = (reg & priv->info->cur_pstate_mask) >> priv->info->cur_pstate_shift;
128128
} else {

0 commit comments

Comments
 (0)