[PATCH v3 8/9] firmware: arm_scmi: Make VirtIO transport a standalone driver

Cristian Marussi cristian.marussi at arm.com
Thu Aug 1 12:25:21 PDT 2024


On Wed, Jul 31, 2024 at 08:11:21AM +0200, Krzysztof Kozlowski wrote:
> On 30/07/2024 15:33, Cristian Marussi wrote:
> > Make SCMI VirtIO transport a standalone driver that can be optionally
> > loaded as a module.
> > 
> 
> > -const struct scmi_desc scmi_virtio_desc = {
> > -	.transport_init = virtio_scmi_init,
> > -	.transport_exit = virtio_scmi_exit,
> > -	.ops = &scmi_virtio_ops,
> > -	/* for non-realtime virtio devices */
> > -	.max_rx_timeout_ms = VIRTIO_MAX_RX_TIMEOUT_MS,
> > -	.max_msg = 0, /* overridden by virtio_get_max_msg() */
> > -	.max_msg_size = VIRTIO_SCMI_MAX_MSG_SIZE,
> > -	.atomic_enabled = IS_ENABLED(CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE),
> > -};
> > +MODULE_ALIAS("scmi-transport-virtio");
> 
> Why do you need the alias being almost the same as module name?
> 

My bad, it was just to place some sort of alias...but not useful really.

Thanks for looking at this,
Cristian



More information about the linux-arm-kernel mailing list