From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94E8C2590 for ; Sun, 22 Jan 2023 15:25:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B140C433D2; Sun, 22 Jan 2023 15:25:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674401130; bh=Su9YEtc8S6N9G55bFojDAsMhVmaKgeEyKdYpJJswcpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aWLNvAj/GMBbO3/0NgBREN0MM/lw3M+phrAgXMt/DV6ldJInGMGFSrm31PtPAqipb CPg6SR8cWayjOeWp6f9txFpbB6oaP2WvTX0mFQeqVeAtyIRfwvs+uYw7mxnwX+Kx7/ 5qJVuQT719Bm39+90NFzzY9II/Tn0tLKM57csL38= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mohan Kumar , Vinod Koul Subject: [PATCH 6.1 121/193] dmaengine: tegra210-adma: fix global intr clear Date: Sun, 22 Jan 2023 16:04:10 +0100 Message-Id: <20230122150251.854433361@linuxfoundation.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230122150246.321043584@linuxfoundation.org> References: <20230122150246.321043584@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Mohan Kumar 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 Link: https://lore.kernel.org/r/20230102064844.31306-1-mkumard@nvidia.com Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/tegra210-adma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/dma/tegra210-adma.c +++ b/drivers/dma/tegra210-adma.c @@ -221,7 +221,7 @@ static int tegra_adma_init(struct tegra_ 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);