Message ID | 20200731121043.24199-12-arnaud.pouliquen@st.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | introduce IOCTL interface for RPMsg channel management | expand |
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; else
Use the override information from the channel info structure to set the rpdev override and so link the channel to a specific driver. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> --- drivers/rpmsg/virtio_rpmsg_bus.c | 1 + 1 file changed, 1 insertion(+)