提交 7632fba0 编写于 作者: H Haley Teng 提交者: Daniel Walker

[ARM] msm: smd: Update the correct fTAIL pointer after reading from fifo

When we read data out of the sender's fifo, we need to advance the sender's
tail pointer, not the receiver's.
Signed-off-by: NHaley Teng <Haley_Teng@htc.com>
Acked-by: NDima Zavin <dima@android.com>
Signed-off-by: NDaniel Walker <dwalker@codeaurora.org>
上级 37521a31
......@@ -246,7 +246,7 @@ static void ch_read_done(struct smd_channel *ch, unsigned count)
{
BUG_ON(count > smd_stream_read_avail(ch));
ch->recv->tail = (ch->recv->tail + count) & ch->fifo_mask;
ch->recv->fTAIL = 1;
ch->send->fTAIL = 1;
}
/* basic read interface to ch_read_{buffer,done} used
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册