rpmsg: glink: Set tail pointer to 0 at end of FIFO
authorChris Lew <clew@codeaurora.org>
Thu, 28 Jun 2018 01:19:57 +0000 (18:19 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 11 Oct 2019 18:34:12 +0000 (11:34 -0700)
commit4623e8bf1de0b86e23a56cdb39a72f054e89c3bd
tree1a4a76d54ab48ca4486662d793139865fa135743
parentbbe692e349e2a1edf3fe0a29a0e05899c9c94d51
rpmsg: glink: Set tail pointer to 0 at end of FIFO

When wrapping around the FIFO, the remote expects the tail pointer to
be reset to 0 on the edge case where the tail equals the FIFO length.

Fixes: caf989c350e8 ("rpmsg: glink: Introduce glink smem based transport")
Cc: stable@vger.kernel.org
Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_smem.c