Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7632fba0 authored by Haley Teng's avatar Haley Teng Committed by Daniel Walker
Browse files

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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