Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] SCMI protocols fixes and refactor
@ 2026-11-24 18:51 Cristian Marussi
  2026-11-24 18:51 ` [PATCH 1/2] firmware: arm_scmi: Invoke proper protocol cleanup on failure Cristian Marussi
  2026-11-24 18:51 ` [PATCH 2/2] firmware: arm_scmi: Refactor protocol allocation Cristian Marussi
  0 siblings, 2 replies; 5+ messages in thread
From: Cristian Marussi @ 2026-11-24 18:51 UTC (permalink / raw)
  To: linux-kernel, linux-arm-kernel, arm-scmi
  Cc: sudeep.holla, philip.radford, Cristian Marussi

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-24 22:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 18:51 [PATCH 0/2] SCMI protocols fixes and refactor Cristian Marussi
2026-11-24 18:51 ` [PATCH 1/2] firmware: arm_scmi: Invoke proper protocol cleanup on failure Cristian Marussi
2026-11-24 22:43   ` Jonathan Cameron
2026-11-24 18:51 ` [PATCH 2/2] firmware: arm_scmi: Refactor protocol allocation Cristian Marussi
2026-11-24 22:50   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox