提交 4e21a95d 编写于 作者: B Bjorn Andersson 提交者: Andy Gross

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: NJeremy McNicoll <jmcnicol@redhat.com>
Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: NAndy Gross <andy.gross@linaro.org>
上级 da057302
...@@ -363,7 +363,7 @@ static void qcom_smd_channel_reset(struct qcom_smd_channel *channel) ...@@ -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, fSTATE, 1);
SET_TX_CHANNEL_FLAG(channel, fBLOCKREADINTR, 1); SET_TX_CHANNEL_FLAG(channel, fBLOCKREADINTR, 1);
SET_TX_CHANNEL_INFO(channel, head, 0); 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); qcom_smd_signal_channel(channel);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册