]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: stm32: dcmi: perform all dma handling within irq_thread
authorAlain Volmat <alain.volmat@foss.st.com>
Tue, 6 Jan 2026 11:34:34 +0000 (12:34 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:33 +0000 (01:05 +0100)
commitc1cde65747158e90e3e4633d571450d929b4a4fe
treefaf97ae5d6f8884c9749318f0e5e9e5bda9b0411
parentc0216d072f119e89dd24735a068808427ab643b5
media: stm32: dcmi: perform all dma handling within irq_thread

Move all the type of frame handling within the dcmi_irq_thread
handler and do not rely on dma_callback as previously.

This simplifies the code by having only a single path for both
compressed and uncompressed data while also making the system
more reactive since irq_handler have more chances to be called
faster than the dma completion callback.  Indeed, in case of the
dma completion callback, this run as a tasklet created by the
dma framework upon getting an interrupt from the dma and run
at a lower priority level than other irq handlers.

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