dma: dw: return DMA_PAUSED only if cookie status is DMA_IN_PROGRESS
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 Jul 2013 12:04:41 +0000 (15:04 +0300)
committerVinod Koul <vinod.koul@intel.com>
Mon, 5 Aug 2013 04:02:26 +0000 (09:32 +0530)
commiteffd5cf6fe71f5efaf59917e7090a3a1f3eabee5
treeafd864f870dd66e15a5fc990d66b7ea68111f24b
parent12381dc0c764ecd1703adc6d23c869006223dab8
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>
drivers/dma/dw/core.c