[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230313170250.815-4-jszhang@kernel.org>
Date: Tue, 14 Mar 2023 01:02:48 +0800
From: Jisheng Zhang <jszhang@...nel.org>
To: Lars-Peter Clausen <lars@...afoo.de>,
Vinod Koul <vkoul@...nel.org>,
Eugeniy Paltsev <Eugeniy.Paltsev@...opsys.com>,
Logan Gunthorpe <logang@...tatee.com>,
Sinan Kaya <okaya@...nel.org>, Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Orson Zhai <orsonzhai@...il.com>,
Baolin Wang <baolin.wang@...ux.alibaba.com>,
Chunyan Zhang <zhang.lyra@...il.com>
Cc: dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-arm-msm@...r.kernel.org
Subject: [PATCH 3/5] dmaengine: plx_dma: Don't set chancnt
The dma framework will calculate the dma channels chancnt, setting it
outself is wrong.
Signed-off-by: Jisheng Zhang <jszhang@...nel.org>
---
drivers/dma/plx_dma.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/dma/plx_dma.c b/drivers/dma/plx_dma.c
index 12725fa1655f..34b6416c3287 100644
--- a/drivers/dma/plx_dma.c
+++ b/drivers/dma/plx_dma.c
@@ -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;
--
2.39.2
Powered by blists - more mailing lists