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

dmaengine: plx_dma: 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>
Acked-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/20230521100252.3197-4-jszhang@kernel.org


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent d27afd7a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;