mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
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. Link: https://lore.kernel.org/[email protected] Signed-off-by: Frank Li <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Assisted-by: LLM Cc: Alexandre Bounine <[email protected]> Cc: Dan Carpenter <[email protected]> Cc: Kees Cook <[email protected]> Cc: Matt Porter <[email protected]> Cc: Vinod Koul <[email protected]>