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

Frank Li Frank.li at oss.nxp.com
Thu Nov 5 14:14:30 PST 2026


On Wed, Oct 28, 2026 at 06:15:02PM +0100, Ulf Hansson wrote:
> On Wed, Sep 30, 2026 at 8:28 PM <Frank.Li at oss.nxp.com> wrote:
> >
> > From: Frank Li <Frank.Li at nxp.com>
> >
> > 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 at kernel.org>
> > Reviewed-by: Wolfram Sang <wsa+renesas at sang-engineering.com>
> > Reviewed-by: Vinod Koul <vkoul at kernel.org>
> > Signed-off-by: Frank Li <Frank.Li at nxp.com>
>
> Applied for next, thanks!

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

>
> Kind regards
> Uffe



More information about the linux-arm-kernel mailing list