From: Stephen Boyd <sboyd@kernel.org>
To: Bo Gan <ganboing@gmail.com>,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: samuel.holland@sifive.com, emil.renner.berthing@canonical.com,
mturquette@baylibre.com, paul.walmsley@sifive.com
Subject: Re: [PATCH v2] clk: analogbits: Fix incorrect calculation of vco rate delta
Date: Thu, 16 Jan 2025 13:46:25 -0800 [thread overview]
Message-ID: <b26a4774530bd59b4e48a36bc6953d55.sboyd@kernel.org> (raw)
In-Reply-To: <20240830061639.2316-1-ganboing@gmail.com>
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@gmail.com>
> ---
Applied to clk-next
prev parent reply other threads:[~2025-01-16 21:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-30 6:16 [PATCH v2] clk: analogbits: Fix incorrect calculation of vco rate delta Bo Gan
2025-01-16 21:46 ` Stephen Boyd [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b26a4774530bd59b4e48a36bc6953d55.sboyd@kernel.org \
--to=sboyd@kernel.org \
--cc=emil.renner.berthing@canonical.com \
--cc=ganboing@gmail.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=paul.walmsley@sifive.com \
--cc=samuel.holland@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox