]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_scmi: Add transport instance handles
authorCristian Marussi <cristian.marussi@arm.com>
Sun, 10 May 2026 16:05:24 +0000 (17:05 +0100)
committerSudeep Holla <sudeep.holla@kernel.org>
Thu, 21 May 2026 16:31:51 +0000 (17:31 +0100)
commit9dfae7d2edb4422c2c11fb6f0198691ec58e1d79
treeb576e5919c74791bf733f09b0ab9ad96c0e4a6c3
parentf9ef3f66f4b18078e464b7606f9497e4dbeb9905
firmware: arm_scmi: Add transport instance handles

SCMI transport drivers are initialized first and then the control is passed
to the SCMI core stack: some of these transports are dependent also on some
external subsytem which will have to be initialized upfront, before the
transport driver itself can be deemed operational.

Transport drivers like virtio or optee need a way to defer the core SCMI
probing till they are fully initialized and operational and also a way to
pass back the device reference to be used as a supplier while building the
devlink relations.

SCMI transport drivers can be probed multiple times when used in a multiple
instance configuration but the capability to carry-on with multiple probes
depends on the support provided by the underlying transport driver.

This change will also allow for the removal of the frowned-upon trick of
registering a platform driver only after the end of the transport drivers
porbe to avoid explicit probe deferrals.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://patch.msgid.link/20260510160527.3537474-2-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
drivers/firmware/arm_scmi/common.h