[PATCH v3 5/9] firmware: arm_scmi: Make MBOX transport a standalone driver

Sudeep Holla sudeep.holla at arm.com
Tue Aug 6 06:12:39 PDT 2024


On Tue, Jul 30, 2024 at 02:33:14PM +0100, Cristian Marussi wrote:
> Make SCMI mailbox transport a standalne driver that can be optionally
> loaded as a module.
> 
> Signed-off-by: Cristian Marussi <cristian.marussi at arm.com>
> ---
> v2 --> v3
> - fixed spacing in Kconfig
> - updated Copyright
> - use new params in DEFINE_SCMI_TRANSPORT_DRIVER
> ---
>  drivers/firmware/arm_scmi/Kconfig             |  4 +-
>  drivers/firmware/arm_scmi/Makefile            |  3 +-
>  drivers/firmware/arm_scmi/common.h            |  3 --
>  drivers/firmware/arm_scmi/driver.c            |  3 --
>  .../{mailbox.c => scmi_transport_mailbox.c}   | 47 +++++++++++++------
>  5 files changed, 38 insertions(+), 22 deletions(-)
>  rename drivers/firmware/arm_scmi/{mailbox.c => scmi_transport_mailbox.c} (87%)

I am happy with the changes in the series, they all look good. I wonder if
it makes sense to move transport drivers into a separate folder
drivers/firmware/arm_scmi/transport/{mailbox,smc,optee,virtio}.c

In scmi_transport_*.c, I see scmi is redundant and transport can be eliminated
by moving all under the folder with that name. Thoughts ?

--
Regards,
Sudeep



More information about the linux-arm-kernel mailing list