]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dmaengine: tegra: Use struct for register offsets
authorAkhil R <akhilrajeev@nvidia.com>
Tue, 31 Mar 2026 10:22:58 +0000 (15:52 +0530)
committerVinod Koul <vkoul@kernel.org>
Thu, 4 Jun 2026 06:51:19 +0000 (12:21 +0530)
commit5000beabae65310ec81db40dcda181b0a6192ff3
tree19aa8c28ed586a7915d7b64c640d1a76fd6f1933
parent680e1b928a6adc1b2d95038ffe9c9887ceafd478
dmaengine: tegra: Use struct for register offsets

Repurpose the struct tegra_dma_channel_regs to define offsets for all the
channel registers. Previously, the struct only held the register values
for each transfer and was wrapped within tegra_dma_sg_req. Move the
values directly into tegra_dma_sg_req and use channel_regs for
storing the register offsets. Update all register reads/writes to use
the struct channel_regs. This prepares for the register offset change
in Tegra264.

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260331102303.33181-6-akhilrajeev@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra186-gpc-dma.c