mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] dmaengine: generalize dmaengine_prep_rio_sg() as dmaengine_prep_slave_sg_context()
@ 2026-11-06 22:43 Frank.Li
  2026-11-06 22:43 ` [PATCH 1/3] dmaengine/rio: rename dmaengine_prep_rio_sg() to dmaengine_prep_slave_sg_context() Frank.Li
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Frank.Li @ 2026-11-06 22:43 UTC (permalink / raw)
  To: Matt Porter, Alexandre Bounine, Vinod Koul, Frank Li,
	Radhey Shyam Pandey, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Michal Simek, Liam Girdwood,
	Mark Brown, Jaroslav Kysela, Takashi Iwai, Orson Zhai,
	Baolin Wang, Chunyan Zhang
  Cc: linux-kernel, dmaengine, netdev, linux-arm-kernel, linux-sound,
	imx, Frank Li

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@nxp.com>
---
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@nxp.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-09  7:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 22:43 [PATCH 0/3] dmaengine: generalize dmaengine_prep_rio_sg() as dmaengine_prep_slave_sg_context() Frank.Li
2026-11-06 22:43 ` [PATCH 1/3] dmaengine/rio: rename dmaengine_prep_rio_sg() to dmaengine_prep_slave_sg_context() Frank.Li
2026-11-06 22:43 ` [PATCH 2/3] net: xilinx: axienet: use dmaengine_prep_slave_sg_context() Frank.Li
2026-11-09  7:33   ` Gupta, Suraj
2026-11-06 22:43 ` [PATCH 3/3] ASoC: sprd: use dmaengine_prep_slave_sg_context() instead of device_prep_slave_sg() Frank.Li
2026-11-07 10:59   ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®