aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/imx-sdma.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@freescale.com>2011-01-20 05:50:38 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-31 12:42:12 +0100
commit1e9cebb42de57f1243261939c77ab5b0f9bcf311 (patch)
treeaaeee8f1f5d9e61e0adc7adb9273558761b3892f /drivers/dma/imx-sdma.c
parent8a9659114c7be6f88253618252881ea6fe0588b4 (diff)
downloadkernel_samsung_espresso10-1e9cebb42de57f1243261939c77ab5b0f9bcf311.zip
kernel_samsung_espresso10-1e9cebb42de57f1243261939c77ab5b0f9bcf311.tar.gz
kernel_samsung_espresso10-1e9cebb42de57f1243261939c77ab5b0f9bcf311.tar.bz2
dmaengine: imx-sdma: correct sdmac->status in sdma_handle_channel_loop()
sdma_handle_channel_loop() is the handler of cyclic tx. One period success does not really mean the success of the tx. Instead of DMA_SUCCESS, DMA_IN_PROGRESS should be the one to tell. Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r--drivers/dma/imx-sdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index f331ae0..cf93d17 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -449,7 +449,7 @@ static void sdma_handle_channel_loop(struct sdma_channel *sdmac)
if (bd->mode.status & BD_RROR)
sdmac->status = DMA_ERROR;
else
- sdmac->status = DMA_SUCCESS;
+ sdmac->status = DMA_IN_PROGRESS;
bd->mode.status |= BD_DONE;
sdmac->buf_tail++;