fsldma: Fix cookie issues
authorSteven J. Magnani <steve@digidescorp.com>
Thu, 25 Feb 2010 19:39:30 +0000 (13:39 -0600)
committerDan Williams <dan.j.williams@intel.com>
Mon, 1 Mar 2010 03:27:42 +0000 (20:27 -0700)
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>
drivers/dma/fsldma.c

index 92efa87258b98f51e8a6fc48b1565c96460c42bc..6541ebf8bf6388992f4db171d500dbca481c55f3 100644 (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;