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

Miquel Raynal miquel.raynal at bootlin.com
Fri Sep 25 07:28:55 PDT 2026


On Thu, 17 Sep 2026 16:47:06 -0400, Frank.Li at oss.nxp.com 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




More information about the linux-mtd mailing list