Skip to content

Commit b51dd7c

Browse files
nxpfranklivinodkoul
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent e0a08ed commit b51dd7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/mcf-edma-main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static int mcf_edma_probe(struct platform_device *pdev)
202202
vchan_init(&mcf_chan->vchan, &mcf_edma->dma_dev);
203203
mcf_chan->tcd = mcf_edma->membase + EDMA_TCD
204204
+ i * sizeof(struct fsl_edma_hw_tcd);
205-
iowrite32(0x0, &mcf_chan->tcd->csr);
205+
edma_write_tcdreg(mcf_chan, cpu_to_le32(0), csr);
206206
}
207207

208208
iowrite32(~0, regs->inth);

0 commit comments

Comments
 (0)