rpmsg: glink: Add support for transport version negotiation
authorSricharan R <sricharan@codeaurora.org>
Thu, 24 Aug 2017 07:21:32 +0000 (12:51 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 30 Aug 2017 03:34:12 +0000 (20:34 -0700)
commitd31ad615f6fb809b534f6091cd06a7e88c44393e
tree167ea940cfebeb141fde41b7ed372f3368baafcf
parentcaf989c350e8e0b9584744b9005fc2c45ca30883
rpmsg: glink: Add support for transport version negotiation

G-link supports a version number and feature flags for each transport.
A combination of the version number and feature flags enable/disable:

 (*) G-Link software updates for each edge
 (*) Individual features for each edge

Endpoints negotiate both the version and the supported flags when
the transport is opened and they cannot be changed after negotiation has
been completed.

Each full implementation of G-Link must support a minimum of the current
version, the previous version, and the base negotiation version called v0.

Acked-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_native.c
drivers/rpmsg/qcom_glink_native.h
drivers/rpmsg/qcom_glink_rpm.c
drivers/rpmsg/qcom_glink_smem.c