The k param help determine when a rk3588_pll fracpll should enable or bypass use of fractal mode.
Change to always write the value of the k param to reg to allow fractal re-configuration and closer match how Linux behaves. Signed-off-by: Jonas Karlman <[email protected]> --- drivers/clk/rockchip/clk_pll.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/clk/rockchip/clk_pll.c b/drivers/clk/rockchip/clk_pll.c index a135fad3de0c..7dbe77d74b8a 100644 --- a/drivers/clk/rockchip/clk_pll.c +++ b/drivers/clk/rockchip/clk_pll.c @@ -484,11 +484,9 @@ static int rk3588_pll_set_rate(struct rockchip_pll_clock *pll, RK3588_PLLCON1_S_MASK), (rate->p << RK3588_PLLCON1_P_SHIFT | rate->s << RK3588_PLLCON1_S_SHIFT)); - if (rate->k) { - rk_clrsetreg(base + pll->con_offset + RK3588_PLLCON(2), - RK3588_PLLCON2_K_MASK, - rate->k << RK3588_PLLCON2_K_SHIFT); - } + rk_clrsetreg(base + pll->con_offset + RK3588_PLLCON(2), + RK3588_PLLCON2_K_MASK, + rate->k << RK3588_PLLCON2_K_SHIFT); /* Power up */ rk_clrreg(base + pll->con_offset + RK3588_PLLCON(1), RK3588_PLLCON1_PWRDOWN); -- 2.54.0
