fsldma: Fix cookie issues

fsl_dma_tx_submit() only sets the cookie on the first descriptor of a
transaction. It should set the cookie on all.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Acked-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Steven J. Magnani 2010-02-25 13:39:30 -06:00 committed by Dan Williams
parent 9ad7bd2944
commit 6ca3a7a96e

View File

@ -362,7 +362,7 @@ static dma_cookie_t fsl_dma_tx_submit(struct dma_async_tx_descriptor *tx)
if (cookie < 0)
cookie = 1;
desc->async_tx.cookie = cookie;
child->async_tx.cookie = cookie;
}
chan->common.cookie = cookie;