From: Shawn Guo Date: Wed, 19 Jan 2011 21:50:39 +0000 (+0800) Subject: dmaengine: imx-sdma: fix up param for the last BD in sdma_prep_slave_sg() X-Git-Tag: v2.6.38-rc5~7^2~1^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=341b9419a8c0a4cdb75773c576870f1eb655516d;p=pandora-kernel.git 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 Signed-off-by: Sascha Hauer --- Reading git-diff-tree failed