[PATCH 1/5] clk: bcm-2835: Pick the closest clock rate
Stephen Boyd
sboyd at kernel.org
Thu Sep 30 11:08:30 PDT 2021
Quoting Maxime Ripard (2021-09-22 05:54:15)
> 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>
> ---
Acked-by: Stephen Boyd <sboyd at kernel.org>
More information about the linux-arm-kernel
mailing list