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

From: Linus Walleij

Date: Thu Sep 17 2026 - 18:31:08 EST


On Thu, Sep 17, 2026 at 10:42 PM <Frank.Li@xxxxxxxxxxx> wrote:

> 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
> Signed-off-by: Frank Li <Frank.Li@xxxxxxx>

This looks good to me. Thanks for fixing all the sites!
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij