Re: [PATCH] firmware: arm_scmi: base: Simplify protocol list size calculation

From: Sudeep Holla

Date: Mon Mar 09 2026 - 05:13:56 EST


On Sat, 28 Feb 2026 11:37:33 +0800, Peng Fan (OSS) wrote:
> Replace the open-coded round-up calculation with the kernel's round_up()
> helper function for better readability.
>
> The original expression:
> (1 + (loop_num_ret - 1) / sizeof(u32)) * sizeof(u32)
>
> is equivalent to rounding up loop_num_ret to the nearest multiple of
> sizeof(u32), which is exactly what round_up() does.
>
> [...]

Applied to sudeep.holla/linux (for-next/scmi/updates), thanks!

[1/1] firmware: arm_scmi: base: Simplify protocol list size calculation
https://git.kernel.org/sudeep.holla/c/09bb95d63ade
--
Regards,
Sudeep