[PATCH] clk: Fix incorrect rate comparison in clk_set_rate()
Sascha Hauer
s.hauer at pengutronix.de
Wed Apr 30 02:33:03 PDT 2025
On Mon, 28 Apr 2025 12:25:06 +0300, Alexander Shiyan wrote:
> The original condition in clk_set_rate() compared the current clock rate
> against clk_round_rate(clk, rate). However, when the clock driver doesn't
> implement .round_rate(), clk_round_rate() falls back to returning the
> current clock rate via clk_get_rate(). This created a situation where:
> clk_get_rate(clk) == clk_round_rate(clk, rate)
> would always evaluate to true when .round_rate() is unimplemented.
>
> [...]
Applied, thanks!
[1/1] clk: Fix incorrect rate comparison in clk_set_rate()
https://git.pengutronix.de/cgit/barebox/commit/?id=3111d62b3174 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list