Commit 3a4905c5 authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Vinod Koul
Browse files

dmaengine: dw-axi-dmac: Don't set chancnt



The dma framework will calculate the dma channels chancnt, setting it
ourself is wrong.

Signed-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20230521100252.3197-2-jszhang@kernel.org


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 8975dd41
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1466,7 +1466,6 @@ static int dw_probe(struct platform_device *pdev)
	dma_cap_set(DMA_CYCLIC, dw->dma.cap_mask);

	/* DMA capabilities */
	dw->dma.chancnt = hdata->nr_channels;
	dw->dma.max_burst = hdata->axi_rw_burst_len;
	dw->dma.src_addr_widths = AXI_DMA_BUSWIDTHS;
	dw->dma.dst_addr_widths = AXI_DMA_BUSWIDTHS;