Re: [PATCH 1/2] clk: samsung: pll: Fix possible truncation in a9fraco recalc rate
From: Krzysztof Kozlowski
Date: Sat Feb 28 2026 - 10:00:37 EST
On Thu, 26 Feb 2026 21:54:46 +0100, Krzysztof Kozlowski wrote:
> samsung_a9fraco_recalc_rate(), unlike other functions in the unit, is
> the first case dividing u64 by u64, thus it should rather use div64_u64
> to avoid possible truncation. Note that the original code did not
> use remainder.
>
> This fixes Coccinelle warning:
>
> [...]
Applied, thanks!
[1/2] clk: samsung: pll: Fix possible truncation in a9fraco recalc rate
https://git.kernel.org/krzk/linux/c/b8d1706ab3d99c1f96d0c9ed7d16d29b8a178d4c
[2/2] clk: samsung: Use %pe format to simplify
https://git.kernel.org/krzk/linux/c/01df1dd3ebe0a16023138f0dc70f5decd513f32e
Best regards,
--
Krzysztof Kozlowski <krzk@xxxxxxxxxx>