rpmsg: glink: Make RX FIFO peak accessor to take an offset
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 24 Aug 2017 07:21:36 +0000 (12:51 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 30 Aug 2017 03:34:13 +0000 (20:34 -0700)
commitb88eee975a26b1542c9da91571f79c110c108dd1
tree024182d504531d4628e2e3665558738c53a2b9ee
parent64f95f87920da673d84396ff1253be2098751e38
rpmsg: glink: Make RX FIFO peak accessor to take an offset

To fully read the received rx data from FIFO both the command and data
has to be read. Currently we read command, data separately and process
them. By adding an offset parameter to RX FIFO peak accessor, command
and data can be read together, simplifying things.  So introduce this.

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