diff options
| author | Frank Li <Frank.Li@nxp.com> | 2026-09-30 10:02:55 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-01 15:21:09 +0100 |
| commit | 853de617c4a62403242d2032e00cb19a0d870130 (patch) | |
| tree | 96260dfbd6e3e3e42665e5df99889abdaf3e7a3f /scripts/Makefile.thinlto | |
| parent | 2d57d6fd1f569d350ab8c7fcae05dd455d9ae535 (diff) | |
| download | linux-853de617c4a62403242d2032e00cb19a0d870130.tar.gz linux-853de617c4a62403242d2032e00cb19a0d870130.zip | |
spi: use dmaengine_get_dma_device() instead of chan->device->dev
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@nxp.com>
Link: https://patch.msgid.link/20260930140257.490019-2-Frank.Li@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
