diff options
| -rw-r--r-- | drivers/rpmsg/qcom_glink_smem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rpmsg/qcom_glink_smem.c b/drivers/rpmsg/qcom_glink_smem.c index 057528e23d3a..892f2b92a4d8 100644 --- a/drivers/rpmsg/qcom_glink_smem.c +++ b/drivers/rpmsg/qcom_glink_smem.c | |||
| @@ -183,6 +183,9 @@ static void glink_smem_tx_write(struct qcom_glink_pipe *glink_pipe, | |||
| 183 | if (head >= pipe->native.length) | 183 | if (head >= pipe->native.length) |
| 184 | head -= pipe->native.length; | 184 | head -= pipe->native.length; |
| 185 | 185 | ||
| 186 | /* Ensure ordering of fifo and head update */ | ||
| 187 | wmb(); | ||
| 188 | |||
| 186 | *pipe->head = cpu_to_le32(head); | 189 | *pipe->head = cpu_to_le32(head); |
| 187 | } | 190 | } |
| 188 | 191 | ||
