Re: [PATCH v2 RESEND] dmaengine: tegra186: Fix residual calculation

From: Vinod Koul
Date: Thu Mar 28 2024 - 03:40:06 EST



On Fri, 15 Mar 2024 18:14:11 +0530, Akhil R wrote:
> The existing residual calculation returns an incorrect value when
> bytes_xfer == bytes_req. This scenario occurs particularly with drivers
> like UART where DMA is scheduled for maximum number of bytes and is
> terminated when the bytes inflow stops. At higher baud rates, it could
> request the tx_status while there is no bytes left to transfer. This will
> lead to incorrect residual being set. Hence return residual as '0' when
> bytes transferred equals to the bytes requested.
>
> [...]

Applied, thanks!

[1/1] dmaengine: tegra186: Fix residual calculation
commit: 30f0ced9971b2d8c8c24ae75786f9079489a012d

Best regards,
--
~Vinod