projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5861714
)
dmaengine: ti: k3-udma: Fix BCDMA for case w/o BCHAN
author
Vignesh Raghavendra
<vigneshr@ti.com>
Tue, 13 Dec 2022 16:43:01 +0000
(22:13 +0530)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 28 Dec 2022 06:37:11 +0000
(12:07 +0530)
Reusing loop iterator fails if BCHAN is not present as iterator is
uninitialized
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link:
https://lore.kernel.org/r/20221213164304.1126945-3-vigneshr@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/ti/k3-udma.c
b/drivers/dma/ti/k3-udma.c
index
ce8b80b
..
aa50d46
100644
(file)
--- a/
drivers/dma/ti/k3-udma.c
+++ b/
drivers/dma/ti/k3-udma.c
@@
-4774,7
+4774,10
@@
static int bcdma_setup_resources(struct udma_dev *ud)
irq_res.desc[i].num = rm_res->desc[i].num;
}
}
+ } else {
+ i = 0;
}
+
if (ud->tchan_cnt) {
rm_res = tisci_rm->rm_ranges[RM_RANGE_TCHAN];
if (IS_ERR(rm_res)) {