media: stm32-dcmi: fix DMA corruption when stopping streaming
authorHugues Fruchet <hugues.fruchet@st.com>
Thu, 28 Feb 2019 17:10:53 +0000 (12:10 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 17:50:08 +0000 (13:50 -0400)
commitb3ce6f6ff3c260ee53b0f2236e5fd950d46957da
treed2d5840813fe258618aecfc250ce2c7eb7ccf74b
parentab41b99e7e55c85f29ff7b54718ccbbe051905e7
media: stm32-dcmi: fix DMA corruption when stopping streaming

Avoid call of dmaengine_terminate_all() between
dmaengine_prep_slave_single() and dmaengine_submit() by locking
the whole DMA submission sequence.

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/stm32/stm32-dcmi.c