]> git.karo-electronics.de Git - mv-sheeva.git/commit - drivers/dma/imx-sdma.c
dmaengine: imx-sdma: set sdmac->status to DMA_ERROR in err_out of sdma_prep_slave_sg()
authorShawn Guo <shawn.guo@freescale.com>
Wed, 19 Jan 2011 21:50:36 +0000 (05:50 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 31 Jan 2011 11:41:50 +0000 (12:41 +0100)
commit4b2ce9ddb370c4eb573540611c347d78ac4b54a0
treec4fa0f7baab20d7990ca4b2628af6f60ac249386
parent1797c33f0edcdcc9a483c06233a203786666a97f
dmaengine: imx-sdma: set sdmac->status to DMA_ERROR in err_out of sdma_prep_slave_sg()

sdma_prep_dma_cyclic() sets sdmac->status to DMA_ERROR in err_out,
and sdma_prep_slave_sg() needs to do the same.  Otherwise,
sdmac->status stays at DMA_IN_PROGRESS, which will make the function
return immediately next time it gets called.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/dma/imx-sdma.c