]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: xilinx_dma: Add support for residue on direct AXIDMA S2MM
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Thu, 18 Dec 2025 08:39:37 +0000 (10:39 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 23 Dec 2025 10:43:13 +0000 (16:13 +0530)
commit5c9142a8063f71233b25d94ae0d73e7dcf9d2a1d
tree56d3adef196b3c5cef99e7439ead08c6bff61085
parent7105e968d1f6f6753f8fc3c47b8a705b6dad36d4
dmaengine: xilinx_dma: Add support for residue on direct AXIDMA S2MM

AXIDMA IP supports reporting the amount of bytes transferred on the S2MM
channel in direct mode (i.e. non-SG), but the driver does not. Thus the
driver always reports that all of the buffer was filled.

Add xilinx_dma_get_residue_axidma_direct_s2mm() which gets the residue
amount for direct AXIDMA for S2MM direction.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Suraj Gupta <suraj.gupta2@amd.com>
Link: https://patch.msgid.link/20251218-xilinx-dma-residue-fix-v1-1-7cd221d69d6b@ideasonboard.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c