projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6c732c
)
mmp_tdma: set cookies as well when asked for tx status
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 27 May 2013 12:14:41 +0000
(15:14 +0300)
committer
Vinod Koul
<vinod.koul@intel.com>
Mon, 5 Aug 2013 04:02:25 +0000
(09:32 +0530)
dma_set_residue() sets only residue value, so user can't rely on the returned
values of cookies. That patch standardize the behaviour.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mmp_tdma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/mmp_tdma.c
b/drivers/dma/mmp_tdma.c
index 9b9366537d73e87c2e6a81113eaa3f0025ae6330..a9345d0387d8fa478f72dbea65bfcfb717f1b191 100644
(file)
--- a/
drivers/dma/mmp_tdma.c
+++ b/
drivers/dma/mmp_tdma.c
@@
-460,7
+460,8
@@
static enum dma_status mmp_tdma_tx_status(struct dma_chan *chan,
{
struct mmp_tdma_chan *tdmac = to_mmp_tdma_chan(chan);
- dma_set_residue(txstate, tdmac->buf_len - tdmac->pos);
+ dma_set_tx_state(txstate, chan->completed_cookie, chan->cookie,
+ tdmac->buf_len - tdmac->pos);
return tdmac->status;
}