dmaengine: plx_dma: Don't set chancnt
authorJisheng Zhang <jszhang@kernel.org>
Sun, 21 May 2023 10:02:50 +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>
Acked-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/20230521100252.3197-4-jszhang@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/plx_dma.c

index 12725fa1655ff104e4264b148c7252a5bfb7f25a..34b6416c3287e604bcc4bacff83acb76ea5924f2 100644 (file)
@@ -517,7 +517,6 @@ static int plx_dma_create(struct pci_dev *pdev)
        plxdev->bar = pcim_iomap_table(pdev)[0];
 
        dma = &plxdev->dma_dev;
-       dma->chancnt = 1;
        INIT_LIST_HEAD(&dma->channels);
        dma_cap_set(DMA_MEMCPY, dma->cap_mask);
        dma->copy_align = DMAENGINE_ALIGN_1_BYTE;