]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
TEMP: rpmsg: add a description field
authorOhad Ben-Cohen <ohad@wizery.com>
Mon, 8 Mar 2021 21:59:00 +0000 (15:59 -0600)
committerSuman Anna <s-anna@ti.com>
Mon, 8 Mar 2021 22:23:31 +0000 (16:23 -0600)
commit7e3ea0d62a4bf0ca04be9bc320d13f564aab0a92
tree58a6c90bfaf5d0e5d1ba5915c10be33a3e888061
parentdb84d92f9188c1ed613f8445a36ca87faa9b8d05
TEMP: rpmsg: add a description field

Add a new description field to the rpmsg bus infrastructure
that can be passed onto the rpmsg client drivers for additional
information. The current rpmsg bus client drivers need to have
a fixed id_table for proper matching, this new field can allow
flexibility for the client drivers (eg: like creating unique
cdevs).

The description field is published through an enhanced name
service announcement message structure. The name service
message processing logic is updated to maintain backward
compatibility with the previous message structure.

Based on an initial patch from Ohad Ben-Cohen.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
[s-anna@ti.com: forward port, add sysfs documentation, fixup qcom drivers]
Signed-off-by: Suman Anna <s-anna@ti.com>
[t-kristo@ti.com: reworked to support both rpmsg with/without the desc field]
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Documentation/ABI/testing/sysfs-bus-rpmsg
drivers/rpmsg/qcom_glink_native.c
drivers/rpmsg/qcom_smd.c
drivers/rpmsg/rpmsg_char.c
drivers/rpmsg/rpmsg_core.c
drivers/rpmsg/virtio_rpmsg_bus.c
drivers/soc/qcom/wcnss_ctrl.c
include/linux/rpmsg.h