Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bjorn Andersson and committed by
Andy Gross
4e21a95d da057302

+1 -1
+1 -1
drivers/soc/qcom/smd.c
··· 363 363 SET_TX_CHANNEL_FLAG(channel, fSTATE, 1); 364 364 SET_TX_CHANNEL_FLAG(channel, fBLOCKREADINTR, 1); 365 365 SET_TX_CHANNEL_INFO(channel, head, 0); 366 - SET_TX_CHANNEL_INFO(channel, tail, 0); 366 + SET_RX_CHANNEL_INFO(channel, tail, 0); 367 367 368 368 qcom_smd_signal_channel(channel); 369 369