summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorMohan Kumar <mkumard@nvidia.com>2023-01-02 12:18:44 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-24 07:24:39 +0100
commit8802fea8dd7f916682dc6448ee323aa1cdf3d3fe (patch)
treeee8a0211c9d34c6e3de4acc967fc5c7b93ea82fe /drivers/dma
parent16848cad1a48e25c6aad68b7ba21a1aa43826945 (diff)
downloadlinux-stable-8802fea8dd7f916682dc6448ee323aa1cdf3d3fe.tar.gz
linux-stable-8802fea8dd7f916682dc6448ee323aa1cdf3d3fe.tar.bz2
linux-stable-8802fea8dd7f916682dc6448ee323aa1cdf3d3fe.zip
dmaengine: tegra210-adma: fix global intr clear
commit 9c7e355ccbb33d239360c876dbe49ad5ade65b47 upstream. 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> Link: https://lore.kernel.org/r/20230102064844.31306-1-mkumard@nvidia.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/tegra210-adma.c2
1 files changed, 1 insertions, 1 deletions
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);