summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@nxp.com>2026-09-17 16:50:12 -0400
committerAndrew Morton <akpm@linux-foundation.org>2026-10-13 21:25:46 -0700
commit858e9d1a8bfe9ba11d099a496f48c22dd5f0c692 (patch)
treeb9ecabd91308430c8db0d26175cd9ef08330386d /rust/kernel/alloc/kvec/errors.rs
parentf5263bee9eb84d2388fd7555a18d518e17226894 (diff)
rapidio: 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. Link: https://lore.kernel.org/20260917205016.1293317-1-Frank.Li@oss.nxp.com Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Assisted-by: LLM Cc: Alexandre Bounine <alex.bou9@gmail.com> Cc: Dan Carpenter <error27@gmail.com> Cc: Kees Cook <kees@kernel.org> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions