dmaengine: stm32-dma: Rework starting transfer management
authorM'boumba Cedric Madianga <cedric.madianga@gmail.com>
Tue, 13 Dec 2016 13:40:47 +0000 (14:40 +0100)
committerVinod Koul <vinod.koul@intel.com>
Tue, 3 Jan 2017 03:53:17 +0000 (09:23 +0530)
commit8d1b76f031ce60c50d03674e6d1db0c5e5f55945
tree9d676e6303fd3255e129a91011dce9a36bd28c36
parent16545502d70641af0fc4d2cc0b2789cf27d9ca9d
dmaengine: stm32-dma: Rework starting transfer management

This patch reworks the way to manage transfer starting.
Now, starting DMA is only allowed when the channel is not busy.
Then, stm32_dma_start_transfer is declared as void.
At least, after each transfer completion, we start the next transfer if a
new descriptor as been queued in the issued list during an ongoing
transfer.

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>
drivers/dma/stm32-dma.c