[PATCH v2 1/2] clk: sunxi-ng: nkm: consider alternative parent rates when finding rate
Maxime Ripard
maxime at cerno.tech
Mon Jun 12 05:21:01 PDT 2023
Hi,
On Sun, Jun 11, 2023 at 11:01:42AM +0200, Frank Oltmanns wrote:
> In case the CLK_SET_RATE_PARENT flag is set, consider using a different
> parent rate when determining a new rate.
>
> To find the best match for the requested rate, perform the following
> steps for each NKM combination:
> - calculate the optimal parent rate,
> - find the best parent rate that the parent clock actually supports
> - use that parent rate to calculate the effective rate.
>
> In case the clk does not support setting the parent rate, use the same
> algorithm as before.
>
> Signed-off-by: Frank Oltmanns <frank at oltmanns.dev>
Most of the comments I had on v1 still apply there, so let's figure them
out before sending a v3.
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230612/2cee7e5e/attachment.sig>
More information about the linux-arm-kernel
mailing list