]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: Add core function and capability check for DMA_MEMCPY_SG
authorAdrian Larumbe <adrianml@alumnos.upm.es>
Mon, 1 Nov 2021 18:08:24 +0000 (18:08 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 22 Nov 2021 06:08:05 +0000 (11:38 +0530)
commit2611790dcad493a626429544f9ee7f5a50aafc5d
tree2490bc6c3812b72a3038b2a04ee9b55a73ef6958
parent99cd3c269aaa464741e17d9cf635e3d840caea20
dmaengine: Add core function and capability check for DMA_MEMCPY_SG

This is the old DMA_SG interface that was removed in commit
e78c8f1ccc81 ("dmaengine: remove DMA_SG as it is dead code in kernel"). It
has been renamed to DMA_MEMCPY_SG to better match the MEMSET and MEMSET_SG
naming convention.

It should only be used for mem2mem copies, either main system memory or
CPU-addressable device memory (like video memory on a PCI graphics card).

Bringing back this interface was prompted by the need to use the Xilinx
CDMA device for mem2mem SG transfers.

Signed-off-by: Adrian Larumbe <adrianml@alumnos.upm.es>
Link: https://lore.kernel.org/r/20211101180825.241048-3-adrianml@alumnos.upm.es
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmaengine.c
include/linux/dmaengine.h