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

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>

authored by

Jisheng Zhang and committed by
Vinod Koul
c6853333 d27afd7a

-1
-1
drivers/dma/plx_dma.c
··· 517 517 plxdev->bar = pcim_iomap_table(pdev)[0]; 518 518 519 519 dma = &plxdev->dma_dev; 520 - dma->chancnt = 1; 521 520 INIT_LIST_HEAD(&dma->channels); 522 521 dma_cap_set(DMA_MEMCPY, dma->cap_mask); 523 522 dma->copy_align = DMAENGINE_ALIGN_1_BYTE;