dmaengine: imx-sdma: return sdmac->status in sdma_tx_status()
authorShawn Guo <shawn.guo@freescale.com>
Wed, 19 Jan 2011 21:50:37 +0000 (05:50 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 31 Jan 2011 11:41:59 +0000 (12:41 +0100)
commit8a9659114c7be6f88253618252881ea6fe0588b4
tree4845609a6f7c48391ec1fee2a01c854590855415
parent4b2ce9ddb370c4eb573540611c347d78ac4b54a0
dmaengine: imx-sdma: return sdmac->status in sdma_tx_status()

The sdmac->status was designed to reflect the status of the tx,
so simply return it in sdma_tx_status().  Then dma client can call
dma_async_is_tx_complete() to know the status of the tx.

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