[PATCH 0/2] SCMI protocols fixes and refactor

From: Cristian Marussi

Date: Tue Nov 24 2026 - 13:51:37 EST


Hi,

A tiny series addressing a minor protocol initialization issue reported by
Sashiko (patch 1/2) and a general tiny following refactor around that same
protocol initialization/fnalization code.

Note that the refactoring moves around the scmi_protocol_put() calls on the
failure path of initialization AND on the protocol release code flow: this
basicall causes the module_put() where needed to be called after the
protocol devres group release, which is how it should have happened really
all the time to avoid races at unload time. IOW the logic is a bit changed
BUT there should NOT be any functional change...at least intended :P

Moreover this standalone tiny series will be also reposted within the
larger Telemetry series to avoid conflicts and ease merging.

Thanks,
Cristian

Cristian Marussi (2):
firmware: arm_scmi: Invoke proper protocol cleanup on failure
firmware: arm_scmi: Refactor protocol allocation

drivers/firmware/arm_scmi/driver.c | 58 ++++++++++++++----------------
1 file changed, 26 insertions(+), 32 deletions(-)

--
2.54.0