diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-07-15 15:04:41 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-05 09:32:26 +0530 |
commit | effd5cf6fe71f5efaf59917e7090a3a1f3eabee5 (patch) | |
tree | afd864f870dd66e15a5fc990d66b7ea68111f24b /drivers/dma/dw/core.c | |
parent | 12381dc0c764ecd1703adc6d23c869006223dab8 (diff) | |
download | op-kernel-dev-effd5cf6fe71f5efaf59917e7090a3a1f3eabee5.zip op-kernel-dev-effd5cf6fe71f5efaf59917e7090a3a1f3eabee5.tar.gz |
dma: dw: return DMA_PAUSED only if cookie status is DMA_IN_PROGRESS
To obey a usual practice let's return DMA_PAUSED status only if
dma_cookie_status returned DMA_IN_PROGRESS.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw/core.c')
-rw-r--r-- | drivers/dma/dw/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c index 5f2ee5f..89eb89f 100644 --- a/drivers/dma/dw/core.c +++ b/drivers/dma/dw/core.c @@ -1107,7 +1107,7 @@ dwc_tx_status(struct dma_chan *chan, if (ret != DMA_SUCCESS) dma_set_residue(txstate, dwc_get_residue(dwc)); - if (dwc->paused) + if (dwc->paused && ret == DMA_IN_PROGRESS) return DMA_PAUSED; return ret; |