Skip to content

Commit

Permalink
[ARM] msm: smd: Update the correct fTAIL pointer after reading from fifo
Browse files Browse the repository at this point in the history
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: Haley Teng <Haley_Teng@htc.com>
Acked-by: Dima Zavin <dima@android.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
  • Loading branch information
Haley Teng authored and Daniel Walker committed May 12, 2010
1 parent 37521a3 commit 7632fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/smd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7632fba

Please sign in to comment.