]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dmaengine: sh: rz-dmac: Use rz_lmdesc_setup() to invalidate descriptors
authorJohn Madieu <john.madieu.xa@bp.renesas.com>
Mon, 16 Mar 2026 13:32:50 +0000 (15:32 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 17 Mar 2026 10:42:11 +0000 (16:12 +0530)
commitbfaa60be647842cece968769f208e57fa5dee594
treee1df045e07f8f97bb70ad12278a479b7ee0c70c9
parentbe25945d0ca3ac736c448b530c47e854c82a0343
dmaengine: sh: rz-dmac: Use rz_lmdesc_setup() to invalidate descriptors

rz_lmdesc_setup() invalidates DMA descriptors more comprehensively.
It resets the base, head, and tail pointers of the descriptor list and
clears the descriptor headers and their NXLA pointers. Use
rz_lmdesc_setup() instead of open-coding parts of its logic.

Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260316133252.240348-7-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/rz-dmac.c