]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dmaengine: dw-axi-dmac: drop redundant DMAC enable in block start
authorNiravkumar L Rabara <niravkumarlaxmidas.rabara@altera.com>
Mon, 25 May 2026 07:10:21 +0000 (00:10 -0700)
committerVinod Koul <vkoul@kernel.org>
Thu, 11 Jun 2026 05:28:42 +0000 (10:58 +0530)
axi_chan_block_xfer_start() runs after the controller is already enabled,
so calling axi_dma_enable() again is unnecessary. Remove the redundant
enable call to keep the transfer start path clean and avoid repeated no-op
programming.

Signed-off-by: Niravkumar L Rabara <niravkumarlaxmidas.rabara@altera.com>
Signed-off-by: Tze Yee Ng <tze.yee.ng@altera.com>
Link: https://patch.msgid.link/060733464e19298f670cd269d4849f2092644923.1779688569.git.tze.yee.ng@altera.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

index 4d53f077e9d2563b81ffcc55fdb537d88e006809..f7a50f470461c60c2e3b30e6df46aaa01d58e5ae 100644 (file)
@@ -437,8 +437,6 @@ static void axi_chan_block_xfer_start(struct axi_dma_chan *chan,
                return;
        }
 
-       axi_dma_enable(chan->chip);
-
        config.dst_multblk_type = DWAXIDMAC_MBLK_TYPE_LL;
        config.src_multblk_type = DWAXIDMAC_MBLK_TYPE_LL;
        config.tt_fc = DWAXIDMAC_TT_FC_MEM_TO_MEM_DMAC;