Re: [PATCH RESEND] clk: sunxi: Fix incorrect usage of round_down()

From: Maxime Ripard
Date: Tue Mar 24 2020 - 11:37:49 EST


On Tue, Mar 17, 2020 at 10:13:32PM +0100, Rikard Falkeborn wrote:
> round_down() can only round to powers of 2. If round_down() is asked
> to round to something that is not a power of 2, incorrect results are
> produced. The incorrect results can be both too large and too small.
>
> Instead, use rounddown() which can round to any number.
>
> Fixes: 6a721db180a2 ("clk: sunxi: Add A31 clocks support")
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@xxxxxxxxx>

Queued for 5.8, thanks!
Maxime

Attachment: signature.asc
Description: PGP signature