]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: stm32-dma: check whether length is aligned on FIFO threshold
authorPierre-Yves MORDRET <pierre-yves.mordret@st.com>
Tue, 11 Sep 2018 07:31:16 +0000 (09:31 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Oct 2018 15:02:15 +0000 (20:32 +0530)
commitcc832dc8e32785a730ba07c3a357e17c201a5df8
tree029a27817f27239a472b4837bbbae98efd408d15
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
dmaengine: stm32-dma: check whether length is aligned on FIFO threshold

When a period length is not multiple of FIFO some data may be stuck
within FIFO.

Burst/FIFO Threshold/Period or buffer length check has to be hardened

In any case DMA will grant any request from client but will degraded
any parameters whether awkward.

Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32-dma.c