dmaengine: dw-axi-dmac: Don't set chancnt
authorJisheng Zhang <jszhang@kernel.org>
Sun, 21 May 2023 10:02:48 +0000 (18:02 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 24 May 2023 06:54:32 +0000 (12:24 +0530)
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>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

index 6937cc0c0b653bb60d6a2ecc1339a1026857ce96..796b6caf0babe185dfd4cfd59ee77f55fc64b65e 100644 (file)
@@ -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;