瀏覽代碼

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>
Shawn Guo 14 年之前
父節點
當前提交
1e9cebb42d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/dma/imx-sdma.c

+ 1 - 1
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)
 		if (bd->mode.status & BD_RROR)
 			sdmac->status = DMA_ERROR;
 			sdmac->status = DMA_ERROR;
 		else
 		else
-			sdmac->status = DMA_SUCCESS;
+			sdmac->status = DMA_IN_PROGRESS;
 
 
 		bd->mode.status |= BD_DONE;
 		bd->mode.status |= BD_DONE;
 		sdmac->buf_tail++;
 		sdmac->buf_tail++;