firmware: arm_scmi: Use dedicated devices to initialize channels
authorCristian Marussi <cristian.marussi@arm.com>
Thu, 22 Dec 2022 18:50:42 +0000 (18:50 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 19 Jan 2023 09:43:48 +0000 (09:43 +0000)
commit05a2801d8b90c1b5159618d4bd3a3c65d60f3ff1
treeeed18d8f27137f41150d3379242cd56be1a94264
parent7a75b7afd8ff7b891e60b2fc9622148e6d1e010a
firmware: arm_scmi: Use dedicated devices to initialize channels

Refactor channels initialization to use dedicated transport devices
instead of using devices borrowed from the SCMI drivers.

Initialize all channels, as described in the device tree, upfront during
SCMI core stack probe phase and free all of them, including the underlying
devices, when the SCMI core is removed.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20221222185049.737625-3-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
drivers/firmware/arm_scmi/mailbox.c
drivers/firmware/arm_scmi/optee.c
drivers/firmware/arm_scmi/smc.c
drivers/firmware/arm_scmi/virtio.c