linux/Documentation/driver-api/dmaengine
Frank Li 796bdb33e8 dmaengine: Add API to combine configuration and preparation (sg and single)
Previously, configuration and preparation required two separate calls. This
works well when configuration is done only once during initialization.

However, in cases where the burst length or source/destination address must
be adjusted for each transfer, calling two functions is verbose and
requires additional locking to ensure both steps complete atomically.

Add a new API dmaengine_prep_config_single() and dmaengine_prep_config_sg()
and callback device_prep_config_sg() that combines configuration and
preparation into a single operation. If the configuration argument is
passed as NULL, fall back to the existing implementation.

Tested-by: Niklas Cassel <cassel@kernel.org>
Acked-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260521-dma_prep_config-v7-1-1f73f4899883@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2026-06-30 16:42:30 +05:30
..
client.rst dmaengine: Add API to combine configuration and preparation (sg and single) 2026-06-30 16:42:30 +05:30
dmatest.rst Documentation: driver-api: correct spelling 2023-02-02 11:05:16 -07:00
index.rst Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
provider.rst docs: dmaengine: add explanation for phys field in dma_async_tx_descriptor structure 2025-12-16 21:23:20 +05:30
pxa_dma.rst docs: driver-api: fix 6 spelling typos in Documentation/driver-api 2026-03-25 12:36:02 -06:00