Skip to content

Commit 3a4905c

Browse files
xhackerustcvinodkoul
authored andcommitted
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: Jisheng Zhang <jszhang@kernel.org> Link: https://lore.kernel.org/r/20230521100252.3197-2-jszhang@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 8975dd4 commit 3a4905c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,6 @@ static int dw_probe(struct platform_device *pdev)
14661466
dma_cap_set(DMA_CYCLIC, dw->dma.cap_mask);
14671467

14681468
/* DMA capabilities */
1469-
dw->dma.chancnt = hdata->nr_channels;
14701469
dw->dma.max_burst = hdata->axi_rw_burst_len;
14711470
dw->dma.src_addr_widths = AXI_DMA_BUSWIDTHS;
14721471
dw->dma.dst_addr_widths = AXI_DMA_BUSWIDTHS;

0 commit comments

Comments
 (0)