From: Krzysztof Kozlowski <krzk@kernel.org>
To: Sylwester Nawrocki <s.nawrocki@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Alim Akhtar <alim.akhtar@samsung.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
GyoungBo Min <mingyoungbo@coasia.com>,
Kyunghwan Kim <kenkim@coasia.com>,
Ravi Patel <ravi.patel@samsung.com>,
linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Cc: kernel test robot <lkp@intel.com>
Subject: Re: [PATCH 1/2] clk: samsung: pll: Fix possible truncation in a9fraco recalc rate
Date: Sat, 28 Feb 2026 15:58:54 +0100 [thread overview]
Message-ID: <177229073452.58647.7962287404150012481.b4-ty@kernel.org> (raw)
In-Reply-To: <20260226205445.336839-3-krzysztof.kozlowski@oss.qualcomm.com>
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@kernel.org>
next prev parent reply other threads:[~2026-02-28 14:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 20:54 Krzysztof Kozlowski
2026-02-26 20:54 ` [PATCH 2/2] clk: samsung: Use %pe format to simplify Krzysztof Kozlowski
2026-03-02 17:08 ` Brian Masney
2026-02-28 14:58 ` Krzysztof Kozlowski [this message]
2026-03-02 17:07 ` [PATCH 1/2] clk: samsung: pll: Fix possible truncation in a9fraco recalc rate Brian Masney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=177229073452.58647.7962287404150012481.b4-ty@kernel.org \
--to=krzk@kernel.org \
--cc=alim.akhtar@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=kenkim@coasia.com \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=lkp@intel.com \
--cc=mingyoungbo@coasia.com \
--cc=mturquette@baylibre.com \
--cc=ravi.patel@samsung.com \
--cc=s.nawrocki@samsung.com \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®