platform_kernel-5.15/drivers/rpmsg
Arnaud Pouliquen 0f1d21aeb4 UPSTREAM: rpmsg: ctrl: Introduce new RPMSG_CREATE/RELEASE_DEV_IOCTL controls
Allow the user space application to create and release an rpmsg device
by adding RPMSG_CREATE_DEV_IOCTL and RPMSG_RELEASE_DEV_IOCTL ioctrls to
the /dev/rpmsg_ctrl interface

The RPMSG_CREATE_DEV_IOCTL Ioctl can be used to instantiate a local rpmsg
device.
Depending on the back-end implementation, the associated rpmsg driver is
probed and a NS announcement can be sent to the remote processor.

The RPMSG_RELEASE_DEV_IOCTL allows the user application to release a
rpmsg device created either by the remote processor or with the
RPMSG_CREATE_DEV_IOCTL call.
Depending on the back-end implementation, the associated rpmsg driver is
removed and a NS destroy rpmsg can be sent to the remote processor.

Suggested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220124102524.295783-12-arnaud.pouliquen@foss.st.com

Bug: 228237154
(cherry picked from commit 8109517b394e6deab5fd21cc5460e82ffed229c6)
Change-Id: I854c18cc8212e3146aabeba134f026d1dc2ba3fa
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
2022-04-12 09:46:18 +08:00
..
Kconfig UPSTREAM: rpmsg: Move the rpmsg control device from rpmsg_char to rpmsg_ctrl 2022-04-12 09:46:17 +08:00
Makefile UPSTREAM: rpmsg: Move the rpmsg control device from rpmsg_char to rpmsg_ctrl 2022-04-12 09:46:17 +08:00
mtk_rpmsg.c rpmsg: Avoid double-free in mtk_rpmsg_register_device 2020-09-15 03:43:24 +00:00
qcom_glink_native.c UPSTREAM: rpmsg: Update rpmsg_chrdev_register_device function 2022-04-12 09:46:17 +08:00
qcom_glink_native.h rpmsg: glink: Switch to SPDX license identifier 2018-06-03 17:37:15 -07:00
qcom_glink_rpm.c rpmsg: glink: Switch to SPDX license identifier 2018-06-03 17:37:15 -07:00
qcom_glink_smem.c rpmsg: glink: Set tail pointer to 0 at end of FIFO 2019-10-11 11:34:12 -07:00
qcom_glink_ssr.c rpmsg: glink: add include of header file 2021-01-05 22:22:40 -06:00
qcom_smd.c UPSTREAM: rpmsg: Update rpmsg_chrdev_register_device function 2022-04-12 09:46:17 +08:00
rpmsg_char.c UPSTREAM: rpmsg: char: Introduce the "rpmsg-raw" channel 2022-04-12 09:46:18 +08:00
rpmsg_char.h UPSTREAM: rpmsg: char: Export eptdev create and destroy functions 2022-04-12 09:46:17 +08:00
rpmsg_core.c UPSTREAM: rpmsg: Create the rpmsg class in core instead of in rpmsg char 2022-04-12 09:46:17 +08:00
rpmsg_ctrl.c UPSTREAM: rpmsg: ctrl: Introduce new RPMSG_CREATE/RELEASE_DEV_IOCTL controls 2022-04-12 09:46:18 +08:00
rpmsg_internal.h UPSTREAM: rpmsg: Update rpmsg_chrdev_register_device function 2022-04-12 09:46:17 +08:00
rpmsg_ns.c rpmsg: Turn name service into a stand alone driver 2020-11-24 10:11:59 -06:00
virtio_rpmsg_bus.c UPSTREAM: rpmsg: Update rpmsg_chrdev_register_device function 2022-04-12 09:46:17 +08:00