summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2016-08-26 21:59:17 (GMT)
committerAndy Gross <andy.gross@linaro.org>2016-09-01 19:19:50 (GMT)
commit4e21a95d7fbc526d35d860ec34c468e04f53672f (patch)
treeb643403059e6260451586c75ca74fd531d03b4b6 /drivers
parentda0573026c2d3d445c39385024bfc3ce6beebe09 (diff)
downloadlinux-4e21a95d7fbc526d35d860ec34c468e04f53672f.tar.xz
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>
Diffstat (limited to 'drivers')
-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 f20816b..322034a 100644
--- a/drivers/soc/qcom/smd.c
+++ b/drivers/soc/qcom/smd.c
@@ -363,7 +363,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);