Re: [PATCH] dmaengine: sh: rz-dmac: Fix off-by-one in residue lmdesc lookup

From: Vinod Koul

Date: Mon Oct 05 2026 - 11:49:58 EST



On Tue, 22 Sep 2026 12:20:37 +0300, Claudiu Beznea wrote:
> lmdesc->nxla is the address of the next descriptor, so comparing it
> against CRLA, which is the address of the current descriptor,
> finds the descriptor before the active one, not the active one.
> The residue loops below then summed one lmdesc too many on top of
> that.
>
> Compare each descriptor's own address to CRLA instead, and add tb
> after advancing to the next lmdesc.
>
> [...]

Applied, thanks!

[1/1] dmaengine: sh: rz-dmac: Fix off-by-one in residue lmdesc lookup
commit: 9db8e502b34bc1df8078abd0169a4fa0624de3bb

Best regards,
--
~Vinod