diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-05-27 12:14:41 (GMT) |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-05 04:02:25 (GMT) |
commit | c14d2bc4709e8d5102a71f222fdd5a2b0c14c669 (patch) | |
tree | d7d88a3db4da42adb172690638a9b6e3fe32fd08 /drivers | |
parent | c6c732cf9ff0547430a9dedc3fcf6a93f4db54ab (diff) | |
download | linux-c14d2bc4709e8d5102a71f222fdd5a2b0c14c669.tar.xz |
mmp_tdma: set cookies as well when asked for tx status
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/mmp_tdma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index 9b93665..a9345d0 100644 --- 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; } |