dmaengine: zynqmp_dma: cleanup after completing all descriptors
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 26 Aug 2021 09:47:40 +0000 (11:47 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 1 Oct 2021 11:56:30 +0000 (17:26 +0530)
commit16ed0ef3e931f49b06d73afbe1fb41737bee86b6
tree390e6aaf431cee15d171df20b6953964f5bf8b58
parent85997fdfd15916dddee2458b7382934b6c857f87
dmaengine: zynqmp_dma: cleanup after completing all descriptors

The current implementation iterates the entire done list for each
completed dma descriptor even if there are multiple completed
descriptors.

Avoid this by first moving all completed descriptors to the done list
and afterwards iterating the done list and finishing the descriptors.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.kernel.org/r/20210826094742.1302009-6-m.tretter@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/zynqmp_dma.c