aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2016-08-26 14:59:17 -0700
committerceltare21 <celtare21@gmail.com>2019-08-24 18:58:43 +0000
commit6bf7497cf2f9260cd1d29c255b99b223434f6ebb (patch)
tree7715c0d684c2769f1940058c211d8049bc442a9b
parente5f512f579ebc1c38a9b356ca57eb9729bb431ac (diff)
soc: qcom: smd: Reset rx tail rather than tx
The local end of each SMD channel is responsible for updating the tx head and the rx tail, as such we should not touch the tx tail during a reset. Reported-by: Jeremy McNicoll <jmcnicol@redhat.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Andy Gross <andy.gross@linaro.org> Signed-off-by: celtare21 <celtare21@gmail.com>
-rw-r--r--drivers/soc/qcom/smd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/smd.c b/drivers/soc/qcom/smd.c
index 86b598cff91a..63fd7a7c0c72 100644
--- a/drivers/soc/qcom/smd.c
+++ b/drivers/soc/qcom/smd.c
@@ -369,7 +369,7 @@ static void qcom_smd_channel_reset(struct qcom_smd_channel *channel)
SET_TX_CHANNEL_FLAG(channel, fSTATE, 1);
SET_TX_CHANNEL_FLAG(channel, fBLOCKREADINTR, 1);
SET_TX_CHANNEL_INFO(channel, head, 0);
- SET_TX_CHANNEL_INFO(channel, tail, 0);
+ SET_RX_CHANNEL_INFO(channel, tail, 0);
qcom_smd_signal_channel(channel);