mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 02:36:02 +00:00
dmaengine: plx_dma: 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> 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>
This commit is contained in:
parent
d27afd7ae6
commit
c68533337c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user