Re: [PATCH v4 06/11] clk: sunxi-ng: Add helper function to find closest rate

From: Maxime Ripard
Date: Mon Jul 17 2023 - 10:08:50 EST


On Mon, 17 Jul 2023 15:34:30 +0200, Frank Oltmanns wrote:
> The default behaviour of clocks in the sunxi-ng driver is to select a
> clock rate that is closest to but less than the requested rate.
>
> Add the ccu_is_better_rate() helper function that - depending on the
> fact if thc CCU_FEATURE_CLOSEST_RATE flag is set - decides if a rate is
>
> [ ... ]

Acked-by: Maxime Ripard <mripard@xxxxxxxxxx>

Thanks!
Maxime