소스 검색

[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: Haley Teng <Haley_Teng@htc.com>
Acked-by: Dima Zavin <dima@android.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Haley Teng 16 년 전
부모
커밋
7632fba051
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/arm/mach-msm/smd.c

+ 1 - 1
arch/arm/mach-msm/smd.c

@@ -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