From: Steven J. Magnani Date: Thu, 25 Feb 2010 19:39:30 +0000 (-0600) Subject: fsldma: Fix cookie issues X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ca3a7a96e91b1aa8c704153c992b191d35b5747;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Ira W. Snyder Signed-off-by: Dan Williams --- diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 92efa87258b9..6541ebf8bf63 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c @@ -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;