summaryrefslogtreecommitdiff
path: root/drivers/dma/fsl-edma-common.h
diff options
context:
space:
mode:
authorArnaud Pouliquen <arnaud.pouliquen@st.com>2019-05-02 12:28:42 +0300
committerVinod Koul <vkoul@kernel.org>2019-05-04 13:16:58 +0300
commit2a4885abf5fbc2dde4be91a11b00cbce2c923f47 (patch)
tree2e2522bcea427a249000ea93600d6a38a7c37170 /drivers/dma/fsl-edma-common.h
parent66c30aa679172df624cd68b0e1cfe757f6d1bc72 (diff)
downloadlinux-2a4885abf5fbc2dde4be91a11b00cbce2c923f47.tar.xz
dmaengine: stm32-dma: fix residue calculation in stm32-dma
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. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/fsl-edma-common.h')
0 files changed, 0 insertions, 0 deletions