Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eab21585 authored by Vinod Koul's avatar Vinod Koul
Browse files

dmaengine: pl330: dont complete descriptor for cyclic dma



the cookie updates completed the cyclic dma descriptor wrongly. This caused the
BUG_ON to be hit as submit is called for completed descriptor

Fix this by not marking the cyclic descriptor as complete

Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
Tested-by: default avatarThomas Abraham <thomas.abraham@linaro.org>
parent 88c08a3f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2322,6 +2322,7 @@ static void pl330_tasklet(unsigned long data)
	/* Pick up ripe tomatoes */
	list_for_each_entry_safe(desc, _dt, &pch->work_list, node)
		if (desc->status == DONE) {
			if (pch->cyclic)
				dma_cookie_complete(&desc->txd);
			list_move_tail(&desc->node, &list);
		}