]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[ARM] msm: smd: Update the correct fTAIL pointer after reading from fifo
authorHaley Teng <Haley_Teng@htc.com>
Mon, 12 Oct 2009 17:38:10 +0000 (10:38 -0700)
committerDaniel Walker <dwalker@codeaurora.org>
Wed, 12 May 2010 16:15:16 +0000 (09:15 -0700)
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>
arch/arm/mach-msm/smd.c

index a88a8fc05f86e849d9590c1dd23b5a8bc3326355..3fbba444e99cba2720ca10869ea253313265cd1a 100644 (file)
@@ -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