]> git.karo-electronics.de Git - mv-sheeva.git/commit
dmaengine: imx-sdma: fix up param for the last BD in sdma_prep_slave_sg()
authorShawn Guo <shawn.guo@freescale.com>
Wed, 19 Jan 2011 21:50:39 +0000 (05:50 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 31 Jan 2011 11:42:23 +0000 (12:42 +0100)
commit341b9419a8c0a4cdb75773c576870f1eb655516d
treecfa8912c361d8cf24a67a8bc560523537769695f
parent1e9cebb42de57f1243261939c77ab5b0f9bcf311
dmaengine: imx-sdma: fix up param for the last BD in sdma_prep_slave_sg()

As per the reference manual, bit "L" should be set while bit "C"
should be cleared for the last buffer descriptor in the non-cyclic
chain, so that sdma can stop trying to find the next BD and end
the transfer.

In case of sdma_prep_slave_sg(), BD_LAST needs to be set and BD_CONT
be cleared for the last BD.

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