linux/drivers/rapidio
Frank Li 858e9d1a8b 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>
2026-10-13 21:25:46 -07:00
..
devices rapidio: use dmaengine_get_dma_device() instead of chan->device->dev 2026-10-13 21:25:46 -07:00
switches rapidio: remove not used code about RIO_VID_TUNDRA 2021-12-21 10:22:19 +01:00
Kconfig rapidio: remove choice for enumeration 2024-05-14 23:36:19 +09:00
Makefile
rio_cm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rio-access.c
rio-driver.c drivers: rapidio: make rio_bus_type const 2025-10-22 07:55:02 +02:00
rio-scan.c rapidio: clear mport->net when rio_add_net() fails 2026-08-03 21:10:13 -07:00
rio-sysfs.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
rio.c rapidio: rio: add WQ_PERCPU to alloc_workqueue users 2026-05-07 11:30:04 -10:00
rio.h rapidio: remove unused functions 2025-05-11 17:54:09 -07:00