summaryrefslogtreecommitdiffstats
path: root/drivers/ssb
diff options
context:
space:
mode:
authorArnaud Pouliquen <arnaud.pouliquen@st.com>2019-05-02 11:28:42 +0200
committerVinod Koul <vkoul@kernel.org>2019-05-04 12:16:58 +0200
commit2a4885abf5fbc2dde4be91a11b00cbce2c923f47 (patch)
tree2e2522bcea427a249000ea93600d6a38a7c37170 /drivers/ssb
parentdmaengine: nbpfaxi: Use dev_get_drvdata() (diff)
downloadlinux-2a4885abf5fbc2dde4be91a11b00cbce2c923f47.tar.xz
linux-2a4885abf5fbc2dde4be91a11b00cbce2c923f47.zip
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/ssb')
0 files changed, 0 insertions, 0 deletions