Commit 7632fba0 authored by Haley Teng's avatar Haley Teng Committed by 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: default avatarHaley Teng <Haley_Teng@htc.com>
Acked-by: default avatarDima Zavin <dima@android.com>
Signed-off-by: default avatarDaniel Walker <dwalker@codeaurora.org>
parent 37521a31
...@@ -246,7 +246,7 @@ static void ch_read_done(struct smd_channel *ch, unsigned count) ...@@ -246,7 +246,7 @@ static void ch_read_done(struct smd_channel *ch, unsigned count)
{ {
BUG_ON(count > smd_stream_read_avail(ch)); BUG_ON(count > smd_stream_read_avail(ch));
ch->recv->tail = (ch->recv->tail + count) & ch->fifo_mask; 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 /* basic read interface to ch_read_{buffer,done} used
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment