rpmsg: virtio: Register the rpmsg_char device
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Thu, 11 Mar 2021 14:04:12 +0000 (15:04 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 17 Mar 2021 19:16:47 +0000 (14:16 -0500)
commitc486682ae1e2b149add22f44cf413b3103e3ef39
tree22aa24fe5207b06e4a2c466d00f2b3c19d07d27a
parentb4ce7e2ebcc52ff907c5a922bf19c3dfa39dddb1
rpmsg: virtio: Register the rpmsg_char device

Instantiate the rpmsg_char device on virtio RPMsg bus creation.
This provides the capability, with the RPMSG_CREATE_EPT_IOCTL ioctl,
to create RPMsg char device endpoints relying on the
rpmsg_chrdev_create_eptdev API.

Notice that the created endpoints are attached to the rpmsg_ctldev
device, but not associated to a channel.
As consequence, the endpoint source and destination addresses have to
been specified and there is no channel creation and no name service
announcement to inform the remote side.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20210311140413.31725-6-arnaud.pouliquen@foss.st.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/virtio_rpmsg_bus.c