[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <196f25e27571de337cc4b887c5e58ade.sboyd@kernel.org>
Date: Wed, 28 Aug 2024 15:38:59 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Bo Gan <ganboing@...il.com>, linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: samuel.holland@...ive.com, emil.renner.berthing@...onical.com, mturquette@...libre.com, paul.walmsley@...ive.com
Subject: Re: [PATCH] clk: analogbits: Fix incorrect calculation of vco rate delta
Quoting Bo Gan (2024-08-28 14:23:37)
> On 8/28/24 11:52, Stephen Boyd wrote:
> > Quoting Bo Gan (2024-08-26 23:19:54)
> >> 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.
> >>
> >> Signed-off-by: Bo Gan <ganboing@...il.com>
> >> ---
> >
> > Please add a Fixes tag.
> >
> > Also, your patch has tons of diff context. Why?
>
> Hi Stephen,
>
> Thanks for the reply. I'll add the Fixes tag in v2. I explicitly enlarged the
> diff to show more surrounding contexts for better readability.
Ok.
> Any other issue
> I should fix?
>
Nope.
Powered by blists - more mailing lists