Re: [PATCH 1/1] mtd: use dmaengine_get_dma_device() instead of chan->device->dev
From: Miquel Raynal
Date: Fri Sep 25 2026 - 10:39:38 EST
On Thu, 17 Sep 2026 16:47:06 -0400, 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.
>
> [...]
Applied to mtd/next, thanks!
[1/1] mtd: use dmaengine_get_dma_device() instead of chan->device->dev
commit: a018524a2ec96da5bb1965053967a20e0069ed9e
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl