dmaengine: xilinx: xdma: Fix the count of elapsed periods in cyclic mode
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 30 Nov 2023 11:13:12 +0000 (12:13 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Dec 2023 16:21:27 +0000 (21:51 +0530)
commit26ee018ff6d1c326ac9b9be36513e35870ed09db
treee573c9925489bc35d3bf74c0e4277afe18c419f7
parente271c0ba3f919c48e90c64b703538fbb7865cb63
dmaengine: xilinx: xdma: Fix the count of elapsed periods in cyclic mode

Xilinx DMA engine is capable of keeping track of the number of elapsed
periods and this is an increasing 32-bit counter which is only reset
when turning off the engine. No need to add this value to our local
counter.

Fixes: cd8c732ce1a5 ("dmaengine: xilinx: xdma: Support cyclic transfers")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20231130111315.729430-2-miquel.raynal@bootlin.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xdma.c