Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cc0d092 authored by Mike Tipton's avatar Mike Tipton Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: clk-cpu-sdxlemur: Don't limit the max register



The lucid_5lpe PLL has multiple registers past 0x3C, including the
ALPHA_VAL and SSC registers. Since we currently set max_register to
0x3C, this causes read failures on ALPHA_VAL in in
alpha_pll_lucid_recalc_rate(). This function ignores the regmap_read()
return codes, which results in the frac variable being uninitialized.

The CPU PLL doesn't currently use fractional operation, so it should
always be zero in HW. But the uninitialized frac variable causes random,
small increases to the calculated frequency.

Specifying max_register is optional, so just remove it and allow the
full range we define in devicetree.

Change-Id: I3549c249f2dfbad5c056de584864b0e1a3eeb912
Signed-off-by: default avatarMike Tipton <mdtipton@codeaurora.org>
parent abeb3d1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment