[PATCH 1/5] clk: bcm-2835: Pick the closest clock rate

nicolas saenz julienne nsaenz at kernel.org
Tue Sep 28 09:26:10 PDT 2021


On Wed, 2021-09-22 at 14:54 +0200, Maxime Ripard wrote:
> The driver currently tries to pick the closest rate that is lower than
> the rate being requested.
> 
> This causes an issue with clk_set_min_rate() since it actively checks
> for the rounded rate to be above the minimum that was just set.
> 
> Let's change the logic a bit to pick the closest rate to the requested
> rate, no matter if it's actually higher or lower.
> 
> Fixes: 6d18b8adbe67 ("clk: bcm2835: Support for clock parent selection")
> Signed-off-by: Maxime Ripard <maxime at cerno.tech>
> ---

Reviewed-by: Nicolas Saenz Julienne <nsaenz at kernel.org>
Tested-by: Nicolas Saenz Julienne <nsaenz at kernel.org> # boot and basic functionality

Regards,
Nicolas




More information about the linux-arm-kernel mailing list