Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jisheng Zhang and committed by
Vinod Koul
3a4905c5 8975dd41

-1
-1
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
··· 1466 1466 dma_cap_set(DMA_CYCLIC, dw->dma.cap_mask); 1467 1467 1468 1468 /* DMA capabilities */ 1469 - dw->dma.chancnt = hdata->nr_channels; 1470 1469 dw->dma.max_burst = hdata->axi_rw_burst_len; 1471 1470 dw->dma.src_addr_widths = AXI_DMA_BUSWIDTHS; 1472 1471 dw->dma.dst_addr_widths = AXI_DMA_BUSWIDTHS;