Skip to contentSkip to conversation

dmaengine: tegra210-adma: fix global intr clear

PATCH Superseded Mohan Kumar 2 participants 3 messages Dec 26, 2022 – Jan 2, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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: 'commit ded1f3db4cd6
("dmaengine: tegra210-adma: prepare for supporting newer Tegra chips")'

---
 drivers/dma/tegra210-adma.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/dma/tegra210-adma.c +3 -1
index ae39b52012b2..487f8fb411b5 100644
@@ -221,7 +221,9 @@ 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
#1 lore raw
Quoted 5 lines · Mohan Kumar

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

fixes: 'commit ded1f3db4cd6
("dmaengine: tegra210-adma: prepare for supporting newer Tegra chips")'

Ugh, this is not the format for fixes tag, see Documentation/process/5.Posting.rst

Quoted 2 lines

Why did you CC stable for this email? Again read the process!

Quoted 9 lines
---
 drivers/dma/tegra210-adma.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/dma/tegra210-adma.c +0 -0
index ae39b52012b2..487f8fb411b5 100644

drivers/dma/tegra210-adma.c static int tegra_adma_init(struct tegra_adma *tdma) · line 226

Quoted 7 lines
drivers/dma/tegra210-adma.c +3 -1
@@ -221,7 +221,9 @@ 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);

This looks _very_ ugly, one line should look and read better:

        tdma_write(tdma, tdma->cdata->ch_base_offset + tdma->cdata->global_int_clear, 0x1);

We are no longer 80 char limited!

Signature · 1 line
~Vinod
#2 lore raw
Quoted 10 lines · Vinod Koul

External email: Use caution opening links or attachments

Quoted 5 lines · Mohan Kumar

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

fixes: 'commit ded1f3db4cd6
("dmaengine: tegra210-adma: prepare for supporting newer Tegra chips")'

Ugh, this is not the format for fixes tag, see Documentation/process/5.Posting.rst

Thanks for the pointers. Will fix the tag in the next patch for review

Quoted 2 lines
Quoted 1 line

Why did you CC stable for this email? Again read the process!

My mistake, will add cc to stable in the commit message of the change as per process in the patch V2

Quoted 12 lines
Quoted 12 lines
---
  drivers/dma/tegra210-adma.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
drivers/dma/tegra210-adma.c +0 -0
index ae39b52012b2..487f8fb411b5 100644
@@ -221,7 +221,9 @@ static int tegra_adma_init(struct tegra_adma *tdma)
       int ret;
 
Quoted 8 lines

drivers/dma/tegra210-adma.c static int tegra_adma_init(struct tegra_adma *tdma) · line 226

Quoted 5 lines
drivers/dma/tegra210-adma.c +3 -1
       /* 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);

This looks _very_ ugly, one line should look and read better:

         tdma_write(tdma, tdma->cdata->ch_base_offset + tdma->cdata->global_int_clear, 0x1);

We are no longer 80 char limited!

Ack. Will fix in the Patch V2

Quoted 3 lines

--
~Vinod