dmaengine: zynqmp_dma: refine dma descriptor locking
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 26 Aug 2021 09:47:41 +0000 (11:47 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 1 Oct 2021 11:56:30 +0000 (17:26 +0530)
commit193a750df59580ddda6779290fa3898ba3216d3c
tree0c3a697b778f8ad4bd5454e6230a8e4355b3b1f3
parent16ed0ef3e931f49b06d73afbe1fb41737bee86b6
dmaengine: zynqmp_dma: refine dma descriptor locking

The descriptor lists are locked for the entire tasklet that completes
the descriptors. This is not necessary, because the lock actually only
protects the descriptor lists.

Make the spin lock more fine-grained and only protect functions that
actually operate on the descriptor lists. This decreases the time when
the lock is held.

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