diff mbox series

[11/13] rpmsg: virtio: use the driver_override in channel creation

Message ID 20200731121043.24199-12-arnaud.pouliquen@st.com (mailing list archive)
State New
Headers show
Series introduce IOCTL interface for RPMsg channel management | expand

Commit Message

Arnaud POULIQUEN July 31, 2020, 12:10 p.m. UTC
Use the override information from the channel info structure
to set the rpdev override and so link the channel to a specific

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
 drivers/rpmsg/virtio_rpmsg_bus.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c
index eaeaefdabf18..dbf7a597ae74 100644
--- a/drivers/rpmsg/virtio_rpmsg_bus.c
+++ b/drivers/rpmsg/virtio_rpmsg_bus.c
@@ -352,6 +352,7 @@  __rpmsg_create_channel(struct virtproc_info *vrp,
 	rpdev = &vch->rpdev;
 	rpdev->src = chinfo->src;
 	rpdev->dst = chinfo->dst;
+	rpdev->driver_override = (char *)chinfo->driver_override;
 	if (virtio_has_feature(vrp->vdev, VIRTIO_RPMSG_F_NS))
 		rpdev->ops = &virtio_rpmsg_w_nsa_ops;