Re: [PATCH v5 1/1] mmc: use dmaengine_get_dma_device() instead of chan->device->dev

From: Frank Li

Date: Thu Nov 05 2026 - 17:15:05 EST


On Wed, Oct 28, 2026 at 06:15:02PM +0100, Ulf Hansson wrote:
> On Wed, Sep 30, 2026 at 8:28 PM <Frank.Li@xxxxxxxxxxx> wrote:
> >
> > From: Frank Li <Frank.Li@xxxxxxx>
> >
> > Replace direct dma_chan::device::dev access with the proper
> > dmaengine_get_dma_device() for consumer API
> >
> > chan->device->dev is not always the device used for DMA mapping.
> > Some DMA engines support per-channel IOMMU mappings, so different
> > channels may use different DMA devices. dmaengine_get_dma_device()
> > returns the correct device for each channel.
> >
> > This also prepares for making the DMA engine provider data structures
> > private. DMA consumers should not access DMA engine internals directly.
> >
> > mxs-mmc.c wrong use mmc host device when do DMA map. Fix it by use
> > dmaengine_get_dma_device().
> >
> > Assisted-by: LLM
> > Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
> > Reviewed-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> > Reviewed-by: Vinod Koul <vkoul@xxxxxxxxxx>
> > Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
>
> Applied for next, thanks!

I have not seen at linux-next. Anything wrong?

>
> Kind regards
> Uffe