Re: [PATCH 2/6] async_tx: use dmaengine_get_dma_device() instead of chan->device->dev

From: Peng Fan

Date: Thu Oct 15 2026 - 07:17:45 EST


On Wed, Oct 14, 2026 at 03:43:46PM -0400, 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.
>
>Prepare for making the DMA engine provider data structures private. DMA
>consumers should not access DMA engine internals directly.
>
>Signed-off-by: Frank Li <Frank.Li@xxxxxxx>

Reviewed-by: Peng Fan <peng.fan@xxxxxxx>