projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a10119a
)
dmaengine: sprd: Don't set chancnt
author
Jisheng Zhang
<jszhang@kernel.org>
Sun, 21 May 2023 10:02:52 +0000
(18:02 +0800)
committer
Vinod 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>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link:
https://lore.kernel.org/r/20230521100252.3197-6-jszhang@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sprd-dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/sprd-dma.c
b/drivers/dma/sprd-dma.c
index 474d3ba8ec9f914cc3f6974dcf94a0c6c05ea1fc..2b639adb48ba501d207c5668cd0d7b25653fa7c8 100644
(file)
--- a/
drivers/dma/sprd-dma.c
+++ b/
drivers/dma/sprd-dma.c
@@
-1169,7
+1169,6
@@
static int sprd_dma_probe(struct platform_device *pdev)
dma_cap_set(DMA_MEMCPY, sdev->dma_dev.cap_mask);
sdev->total_chns = chn_count;
- sdev->dma_dev.chancnt = chn_count;
INIT_LIST_HEAD(&sdev->dma_dev.channels);
INIT_LIST_HEAD(&sdev->dma_dev.global_node);
sdev->dma_dev.dev = &pdev->dev;