[PATCH 0/3] dmaengine: generalize dmaengine_prep_rio_sg() as dmaengine_prep_slave_sg_context()
From: Frank . Li
Date: Fri Nov 06 2026 - 17:45:45 EST
The dmaengine_prep_rio_sg() helper was only available under
CONFIG_RAPIDIO_DMA_ENGINE and used a RapidIO-specific context pointer
type. Several drivers need to pass an opaque context to
device_prep_slave_sg() without depending on RapidIO.
This series renames dmaengine_prep_rio_sg() to
dmaengine_prep_slave_sg_context(), changes the context parameter from
'struct rio_dma_ext *' to 'void *', and removes the
CONFIG_RAPIDIO_DMA_ENGINE guard so the helper is unconditionally
available.
Existing callers (RapidIO and Xilinx AXI Ethernet) and the Spreadtrum
PCM DMA driver are updated to use the new API.
No functional change. Prepare to make struct dma_device private to the DMA
engine.
Because only 3 user, which use context when prep slave_sg. Suggest direct
go through DMA engine tree.
Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
---
Frank Li (3):
dmaengine/rio: rename dmaengine_prep_rio_sg() to dmaengine_prep_slave_sg_context()
net: xilinx: axienet: use dmaengine_prep_slave_sg_context()
ASoC: sprd: use dmaengine_prep_slave_sg_context() instead of device_prep_slave_sg()
drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 7 ++++---
drivers/rapidio/rio.c | 15 ++++++++-------
include/linux/dmaengine.h | 9 +++------
sound/soc/sprd/sprd-pcm-compress.c | 6 +++---
sound/soc/sprd/sprd-pcm-dma.c | 6 +++---
5 files changed, 21 insertions(+), 22 deletions(-)
---
base-commit: 8dc06c1b6e41742c38fb4f35f32ae88b74fd58c8
change-id: 20261105-rio_sg-ac6ae89a7c15
Best regards,
--
Frank Li <Frank.Li@xxxxxxx>