summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2022-12-13 17:43:01 +0100
committerVinod Koul <vkoul@kernel.org>2022-12-28 07:37:11 +0100
commit4c7f3ca1745e18e2da9a83373c26eaf6f51c0505 (patch)
tree300daf38f6b6560cb28ec5147a06524c6c4bfa37 /drivers/dma
parentdt-bindings: dma: ti: k3-bcdma: Add bindings for BCDMA CSI RX (diff)
downloadlinux-4c7f3ca1745e18e2da9a83373c26eaf6f51c0505.tar.xz
linux-4c7f3ca1745e18e2da9a83373c26eaf6f51c0505.zip
dmaengine: ti: k3-udma: Fix BCDMA for case w/o BCHAN
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/ti/k3-udma.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c
index ce8b80bb34d7..aa50d46fa856 100644
--- 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)) {