From 91ae1e3576da25809dfbfb8ef98923d4a2eb59cb Mon Sep 17 00:00:00 2001 From: Vinod Koul Date: Thu, 5 Apr 2012 22:11:03 +0530 Subject: [PATCH] dmaengine: mxs-dma: assign cookie in prepare recent cookie updates seem to have missed assigning cookie in mxs-dma prepare call. Reported-by: Sam Gandhi Tested-by: Sam Gandhi Signed-off-by: Vinod Koul --- drivers/dma/mxs-dma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index c81ef7e10e08..f792add102ff 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -399,6 +399,8 @@ static struct dma_async_tx_descriptor *mxs_dma_prep_slave_sg( ccw->bits &= ~CCW_DEC_SEM; } else { idx = 0; + /* assign cookie here */ + dma_cookie_assign(&mxs_chan->desc); } if (direction == DMA_TRANS_NONE) { -- 2.39.5