rpmsg: add a description field
authorOhad Ben-Cohen <ohad@wizery.com>
Wed, 13 Jun 2018 08:21:10 +0000 (11:21 +0300)
committerSuman Anna <s-anna@ti.com>
Wed, 19 Dec 2018 03:16:28 +0000 (21:16 -0600)
commitaeded1f439effc84aa9f4e341a6e92ce1844ab98
tree783c84da935d7e227144a1f831cfe01f0a45d53c
parente9719fc57f6450c00642aee6917027052ff5ca57
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