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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:38:30 +0000 (15:38 +0100)
commitf6cea8a29103f366e3c4aaba9c82ab3c78c1865c
treea992b1f8e6b1477e2e711dbd56de09e903df9ac5
parent12127f571caf8de22c76c867271281a26925b0be
media: stm32-dcmi: fix DMA corruption when stopping streaming

commit b3ce6f6ff3c260ee53b0f2236e5fd950d46957da upstream.

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>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/stm32/stm32-dcmi.c