Skip to contentSkip to conversation

dmaengine: tegra210-adma: fix global intr clear

PATCH Applied Mohan Kumar 2 participants 2 messages Jan 2, 2023 – Jan 18, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dmaengine: tegra210-adma: fix global intr clear

The current global interrupt clear programming register offset was not correct. Fix the programming with right offset

Fixes ded1f3db4cd6 ("dmaengine: tegra210-adma: prepare for supporting newer Tegra chips")
---
 drivers/dma/tegra210-adma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/tegra210-adma.c +1 -1
index ae39b52012b2..79da93cc77b6 100644
@@ -221,7 +221,7 @@ static int tegra_adma_init(struct tegra_adma *tdma)
 	int ret;
 
 	/* Clear any interrupts */
-	tdma_write(tdma, tdma->cdata->global_int_clear, 0x1);
+	tdma_write(tdma, tdma->cdata->ch_base_offset + tdma->cdata->global_int_clear, 0x1);
 
 	/* Assert soft reset */
 	tdma_write(tdma, ADMA_GLOBAL_SOFT_RESET, 0x1);
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Mohan Kumar

The current global interrupt clear programming register offset was not correct. Fix the programming with right offset

Applied, thanks

Signature · 1 line
~Vinod