diff options
author | Haley Teng <Haley_Teng@htc.com> | 2009-10-12 13:38:10 -0400 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-05-12 12:15:16 -0400 |
commit | 7632fba05197999fb0d24776b567682ebd62f62a (patch) | |
tree | fd576a73b6d45777952af33b327cdf21215e6fb2 /arch/arm/mach-msm | |
parent | 37521a3181123dc4a9584cc4b8572c08ea0a8274 (diff) |
[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>
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r-- | arch/arm/mach-msm/smd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/smd.c b/arch/arm/mach-msm/smd.c index a88a8fc05f86..3fbba444e99c 100644 --- a/arch/arm/mach-msm/smd.c +++ b/arch/arm/mach-msm/smd.c | |||
@@ -246,7 +246,7 @@ static void ch_read_done(struct smd_channel *ch, unsigned count) | |||
246 | { | 246 | { |
247 | BUG_ON(count > smd_stream_read_avail(ch)); | 247 | BUG_ON(count > smd_stream_read_avail(ch)); |
248 | ch->recv->tail = (ch->recv->tail + count) & ch->fifo_mask; | 248 | ch->recv->tail = (ch->recv->tail + count) & ch->fifo_mask; |
249 | ch->recv->fTAIL = 1; | 249 | ch->send->fTAIL = 1; |
250 | } | 250 | } |
251 | 251 | ||
252 | /* basic read interface to ch_read_{buffer,done} used | 252 | /* basic read interface to ch_read_{buffer,done} used |