M'boumba Cedric Madianga 2b12c5580e dmaengine: stm32-dma: Fix residue computation issue in cyclic mode
This patch resolves the residue computation issue detected in cyclic mode.
Now, in cyclic mode, we increment next_sg variable as soon as a period is
transferred instead of after pushing a new sg request.
Then, we take into account that after transferring a complete buffer,
the next_sg variable is equal to 0.

Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com>
Reviewed-by: Ludovic BARRE <ludovic.barre@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2017-01-03 09:23:17 +05:30
..
2016-12-14 20:42:45 -08:00
2013-01-07 17:36:37 +01:00
2016-12-25 17:21:22 +01:00
2016-12-14 20:42:45 -08:00
2016-03-24 23:13:48 -07:00
2016-09-05 16:40:52 +05:30
2016-05-27 15:26:11 -07:00