[PATCH] firmware: arm_scmi: Support loop control in quirk code snippets

Sudeep Holla sudeep.holla at kernel.org
Wed Mar 18 09:27:58 PDT 2026


On Mon, 16 Mar 2026 16:34:40 +0100, Geert Uytterhoeven wrote:
> Each SCMI firmware quirk contains a code snippet, which handles the
> quirk, and has full access to the surrounding context.  When this
> context is (part of) a loop body, the code snippet may want to use loop
> control statements like "break" and "continue".  Unfortunately the
> SCMI_QUIRK() macro implementation contains a dummy loop, taking
> precedence over any outer loops.  Hence quirk code cannot use loop
> control statements, but has to resort to polluting the surrounding
> context with a label, and use goto.
> 
> [...]

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

[1/1] firmware: arm_scmi: Support loop control in quirk code snippets
      https://git.kernel.org/sudeep.holla/c/0a7ec808abec
--
Regards,
Sudeep




More information about the linux-arm-kernel mailing list