Skip to contentSkip to conversation

dma: rcar-dma: Fixed active descriptor initializing

PATCH RESEND In review [email protected] 1 participant 1 message Sep 20, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 6/6 dma: rcar-dma: Fixed active descriptor initializing

From: Muhammad Hamza Farooq <[email protected]>

Running descriptor pointer is set to NULL upon freeing resources. Other- wise, rcar_dmac_issue_pending might not start new transfers

---
 drivers/dma/sh/rcar-dmac.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/sh/rcar-dmac.c +1 -0
index d007351..39306c9 100644
@@ -1042,6 +1042,7 @@ static void rcar_dmac_free_chan_resources(struct dma_chan *chan)
 	list_splice_init(&rchan->desc.active, &list);
 	list_splice_init(&rchan->desc.done, &list);
 	list_splice_init(&rchan->desc.wait, &list);
+	rchan->desc.running = NULL;
 
 	list_for_each_entry(desc, &list, node)
 		rcar_dmac_realloc_hwdesc(rchan, desc, 0);
Signature · 1 line
1.9.1