projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a4905c
)
dmaengine: axi-dmac: Don't set chancnt
author
Jisheng Zhang
<jszhang@kernel.org>
Sun, 21 May 2023 10:02:49 +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>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Link:
https://lore.kernel.org/r/20230521100252.3197-3-jszhang@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c
patch
|
blob
|
history
diff --git
a/drivers/dma/dma-axi-dmac.c
b/drivers/dma/dma-axi-dmac.c
index a812b9b00e6bee1fc72edc6ede9a249b7c30aad3..fc7cdad371616adfc8422dc382e7cb9c4b3728d0 100644
(file)
--- a/
drivers/dma/dma-axi-dmac.c
+++ b/
drivers/dma/dma-axi-dmac.c
@@
-963,7
+963,6
@@
static int axi_dmac_probe(struct platform_device *pdev)
dma_dev->device_terminate_all = axi_dmac_terminate_all;
dma_dev->device_synchronize = axi_dmac_synchronize;
dma_dev->dev = &pdev->dev;
- dma_dev->chancnt = 1;
dma_dev->src_addr_widths = BIT(dmac->chan.src_width);
dma_dev->dst_addr_widths = BIT(dmac->chan.dest_width);
dma_dev->directions = BIT(dmac->chan.direction);