diff options
| author | Bo Gan <[email protected]> | 2024-08-30 06:16:39 +0000 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2025-01-16 21:43:49 +0000 |
| commit | d7f12857f095ef38523399d47e68787b357232f6 (patch) | |
| tree | 08bf8d5b9ab3853dff41cf28e085fc56c1f60fb2 /net/unix/unix_bpf.c | |
| parent | clk: Use str_enable_disable-like helpers (diff) | |
| download | kernel-d7f12857f095ef38523399d47e68787b357232f6.tar.gz kernel-d7f12857f095ef38523399d47e68787b357232f6.zip | |
clk: analogbits: Fix incorrect calculation of vco rate delta
In 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. Fix it.
Fixes: 7b9487a9a5c4 ("clk: analogbits: add Wide-Range PLL library")
Signed-off-by: Bo Gan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
