Re: [PATCH v2] dmaengine: stm32-dma: fix residue calculation in stm32-dma

From: Vinod Koul
Date: Sat May 04 2019 - 06:19:07 EST


On 02-05-19, 11:28, Arnaud Pouliquen wrote:
> In double buffer mode, during residue calculation, the DMA can
> automatically switch to the next transfer. Indeed the CT bit that
> gives position in the double buffer can has been updated by the
> hardware, during calculation.
> In this case the SxNDTR register value can not be trusted.
> If a transition is detected we consider that the DMA has switched to
> the beginning of next sg.

Applied, thanks

--
~Vinod