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

Vinod Koul vkoul at kernel.org
Fri Sep 18 10:50:32 PDT 2026


On 18-09-26, 11:23, 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.
> 
> Assisted-by: LLM
> Reviewed-by: Linus Walleij <linusw at kernel.org>
> Signed-off-by: Frank Li <Frank.Li at nxp.com>

Reviewed-by: Vinod Koul <vkoul at kernel.org>

-- 
~Vinod



More information about the linux-arm-kernel mailing list