summaryrefslogtreecommitdiff
path: root/drivers/dma/of-dma.c
diff options
context:
space:
mode:
authorM'boumba Cedric Madianga <cedric.madianga@gmail.com>2016-12-13 16:40:48 +0300
committerVinod Koul <vinod.koul@intel.com>2017-01-03 06:53:17 +0300
commit2b12c5580e0a4c0ffd513d1522dd39b2464fb207 (patch)
tree8ab19ceb150fc730169f485c105591e11a3e31e6 /drivers/dma/of-dma.c
parent8d1b76f031ce60c50d03674e6d1db0c5e5f55945 (diff)
downloadlinux-2b12c5580e0a4c0ffd513d1522dd39b2464fb207.tar.xz
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 'drivers/dma/of-dma.c')
0 files changed, 0 insertions, 0 deletions