Skip to contentSkip to conversation

fsldma: Fix cookie issues

PATCH Superseded Steven J. Magnani 2 participants 2 messages Feb 22, 2010 – Feb 25, 2010

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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.

---

drivers/dma/fsldma.c +1 -1
diff -uprN a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
@@ -362,7 +362,7 @@ static dma_cookie_t fsl_dma_tx_submit(st
 		if (cookie < 0)
 			cookie = 1;
 
-		desc->async_tx.cookie = cookie;
+		child->async_tx.cookie = cookie;
 	}
 
 	chan->common.cookie = cookie;
#1 lore raw
Quoted 10 lines · Steven J. Magnani

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

---
diff -uprN a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c

drivers/dma/fsldma.c static dma_cookie_t fsl_dma_tx_submit(st · line 368

Quoted 8 lines
drivers/dma/fsldma.c +1 -1
@@ -362,7 +362,7 @@ static dma_cookie_t fsl_dma_tx_submit(st
 		if (cookie < 0)
 			cookie = 1;
 
-		desc->async_tx.cookie = cookie;
+		child->async_tx.cookie = cookie;
 	}
 
 	chan->common.cookie = cookie;

This looks correct to me. I'm not sure I ever tested the driver with a chained struct dma_async_tx_descriptor.

Ira