From: Shawn Guo Date: Wed, 19 Jan 2011 21:50:38 +0000 (+0800) Subject: dmaengine: imx-sdma: correct sdmac->status in sdma_handle_channel_loop() X-Git-Tag: v2.6.38-rc5~7^2~1^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e9cebb42de57f1243261939c77ab5b0f9bcf311;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Sascha Hauer --- 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++;