]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: stm32: dcmi: only create dma descriptor once at buf_prepare
authorAlain Volmat <alain.volmat@foss.st.com>
Tue, 6 Jan 2026 11:34:31 +0000 (12:34 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:32 +0000 (01:05 +0100)
commit9b6f6208f40dee7e021a97f863cdcdd55c59327c
tree14ea3a88d472c00a0fb4ee83b900f6bdf79a48db
parentbc901885fae0a0273288666609d143e960b6ad3a
media: stm32: dcmi: only create dma descriptor once at buf_prepare

Perform the dmaengine prep_slave_sg call within buf_prepare and
mark the descriptor as reusable in order to avoid having to redo
this at every start of the dma.
This also allow to remove the mutex used by the driver to protect
dma descriptors related piece of codes.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/st/stm32/stm32-dcmi.c