Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | From | Frank Li <> | Subject | [PATCH v2 3/5] dmaengine: mcf-edma: force type conversion for TCD pointer | Date | Thu, 16 Nov 2023 17:27:41 -0500 |
| |
The TCD structure undergoes changes, with some fields extending to 64 bits. When TCD64 is enabled, the type of TCD changes to 'void *' . This addresses the need to force the type conversion to 'struct fsl_edma_hw_tcd *' at here.
Signed-off-by: Frank Li <Frank.Li@nxp.com> --- drivers/dma/mcf-edma-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/mcf-edma-main.c b/drivers/dma/mcf-edma-main.c index ab21455d9c3a4..204a0a7bdea35 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); + iowrite32(0x0, &((struct fsl_edma_hw_tcd *)mcf_chan->tcd)->csr); } iowrite32(~0, regs->inth); -- 2.34.1
| ![\](/images/icornerr.gif) |