firmware: arm_scmi: Add optional link_supplier() transport op
authorPeter Hilber <peter.hilber@opensynergy.com>
Tue, 3 Aug 2021 13:10:21 +0000 (14:10 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 5 Aug 2021 09:23:23 +0000 (10:23 +0100)
commit7885281260f9b952dc66b67182a2218b01e7859f
tree5c7ea581204009e84565961fba31dc9e3ab82bb5
parentf301bba0ca7392d16a6ea4f1d264a91f1fadea1a
firmware: arm_scmi: Add optional link_supplier() transport op

Some transports are also effectively registered with other kernel subsystem
in order to be properly probed and initialized; as a consequence such kind
of transports, and their related devices, might still not have been probed
and initialized at the time the main SCMI core driver is probed.

Add an optional .link_supplier() transport operation which can be used by
the core SCMI stack to dynamically check if the transport is ready and
dynamically link its device to the SCMI platform instance device.

Link: https://lore.kernel.org/r/20210803131024.40280-13-cristian.marussi@arm.com
Signed-off-by: Peter Hilber <peter.hilber@opensynergy.com>
[ Cristian: reworded commit message ]
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c