rpmsg: glink: smem: Ensure ordering during tx
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 14 Dec 2017 20:15:46 +0000 (12:15 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 19 Dec 2017 05:47:43 +0000 (21:47 -0800)
commit9d32497361ff89d2fc8306407de6f04b2bfb2836
treecfa4a770525da901bf3080892e80593df27b94f1
parented608eb0be578472ba1b23bca92f7dec61b24053
rpmsg: glink: smem: Ensure ordering during tx

Ensure the ordering of the fifo write and the update of the write index,
so that the index is not updated before the data has landed in the fifo.

Acked-By: Chris Lew <clew@codeaurora.org>
Reported-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_smem.c