linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] dmaengine: tegra210-adma: fix global intr clear
@ 2023-01-02  6:48 Mohan Kumar
  2023-01-18 12:04 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Mohan Kumar @ 2023-01-02  6:48 UTC (permalink / raw)
  To: ldewangan, jonathanh, vkoul, thierry.reding
  Cc: dmaengine, linux-tegra, linux-kernel, Mohan Kumar, stable

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")
Cc: stable@vger.kernel.org
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
---
 drivers/dma/tegra210-adma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/tegra210-adma.c b/drivers/dma/tegra210-adma.c
index ae39b52012b2..79da93cc77b6 100644
--- a/drivers/dma/tegra210-adma.c
+++ b/drivers/dma/tegra210-adma.c
@@ -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);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] dmaengine: tegra210-adma: fix global intr clear
  2023-01-02  6:48 [PATCH v2] dmaengine: tegra210-adma: fix global intr clear Mohan Kumar
@ 2023-01-18 12:04 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2023-01-18 12:04 UTC (permalink / raw)
  To: Mohan Kumar
  Cc: ldewangan, jonathanh, thierry.reding, dmaengine, linux-tegra,
	linux-kernel, stable

On 02-01-23, 12:18, Mohan Kumar wrote:
> The current global interrupt clear programming register offset
> was not correct. Fix the programming with right offset

Applied, thanks

-- 
~Vinod

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-18 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-02  6:48 [PATCH v2] dmaengine: tegra210-adma: fix global intr clear Mohan Kumar
2023-01-18 12:04 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).