rpmsg: glink: smem: Ensure ordering during tx
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 21 Apr 2020 12:40:10 +0000 (13:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 06:01:06 +0000 (08:01 +0200)
commitdeb1682b6f049bf5e6c496b1b2d45395ee971f32
tree7750a29d0b5a2ddbf9ca6e66e8e233a87834a92b
parentbb8ca3d39feca1c07cc138ef16675a3ce690b469
rpmsg: glink: smem: Ensure ordering during tx

[ Upstream commit 9d32497361ff89d2fc8306407de6f04b2bfb2836 ]

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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rpmsg/qcom_glink_smem.c