diff options
author | M'boumba Cedric Madianga <cedric.madianga@gmail.com> | 2016-12-13 14:40:48 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-01-03 09:23:17 +0530 |
commit | 2b12c5580e0a4c0ffd513d1522dd39b2464fb207 (patch) | |
tree | 8ab19ceb150fc730169f485c105591e11a3e31e6 /tools/lib/api/debug.c | |
parent | 8d1b76f031ce60c50d03674e6d1db0c5e5f55945 (diff) |
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>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions