projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37521a3
)
[ARM] msm: smd: Update the correct fTAIL pointer after reading from fifo
author
Haley Teng
<Haley_Teng@htc.com>
Mon, 12 Oct 2009 17:38:10 +0000
(10:38 -0700)
committer
Daniel 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-msm/smd.c
b/arch/arm/mach-msm/smd.c
index a88a8fc05f86e849d9590c1dd23b5a8bc3326355..3fbba444e99cba2720ca10869ea253313265cd1a 100644
(file)
--- 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)
{
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