diff options
author | Frank Li <Frank.Li@nxp.com> | 2023-12-21 10:35:26 -0500 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-02-07 09:40:17 +0100 |
commit | b51dd7c8aac292396d038d0a9fb9c1589addb515 (patch) | |
tree | d77239aa897c21e389259e52dedee6c1836340d5 /drivers/dma/mcf-edma-main.c | |
parent | e0a08ed25492b6437e366b347113db484037b9b9 (diff) |
dmaengine: mcf-edma: utilize edma_write_tcdreg() macro for TCD Access
The TCD structure has undergone modifications, incorporating fields
extended to 64 bits. When TCD64 is enabled, the TCD type shifts to
'void *'. Use of the edma_write_tcdreg() macro to facilitate TCD register
access.
Add cpu_to_le32(0) to ensure little-endian compatibility with TCD
registers and avoid a build warning.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20231221153528.1588049-5-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/mcf-edma-main.c')
-rw-r--r-- | drivers/dma/mcf-edma-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mcf-edma-main.c b/drivers/dma/mcf-edma-main.c index ab21455d9c3a..dba631783876 100644 --- a/drivers/dma/mcf-edma-main.c +++ b/drivers/dma/mcf-edma-main.c @@ -202,7 +202,7 @@ static int mcf_edma_probe(struct platform_device *pdev) vchan_init(&mcf_chan->vchan, &mcf_edma->dma_dev); mcf_chan->tcd = mcf_edma->membase + EDMA_TCD + i * sizeof(struct fsl_edma_hw_tcd); - iowrite32(0x0, &mcf_chan->tcd->csr); + edma_write_tcdreg(mcf_chan, cpu_to_le32(0), csr); } iowrite32(~0, regs->inth); |