[Linux-stm32] [PATCH v2] dmaengine: stm32-dma: fix residue calculation in stm32-dma
Vinod Koul
vkoul at kernel.org
Sat May 4 10:18:23 UTC 2019
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
More information about the Linux-stm32
mailing list