Re: [PATCH v2] clk: analogbits: Fix incorrect calculation of vco rate delta
From: Stephen Boyd
Date: Thu Jan 16 2025 - 16:46:32 EST
Quoting Bo Gan (2024-08-29 23:16:39)
> In function `wrpll_configure_for_rate`, we try to determine the best PLL
> configuration for a target rate. However, in the loop where we try values
> of R, we should compare the derived `vco` with `target_vco_rate`. However,
> we were in fact comparing it with `target_rate`, which is actually after
> Q shift. This is incorrect, and sometimes can result in suboptimal clock
> rates. This patch fixes it.
>
> Fixes: 7b9487a9a5c4 ("clk: analogbits: add Wide-Range PLL library")
> Signed-off-by: Bo Gan <ganboing@xxxxxxxxx>
> ---
Applied to clk-next