FAILED: Patch "media: stm32: dcmipp: bytecap: clear all interrupts upon stream stop" failed to apply to 6.12-stable tree
Sasha Levin
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 222f1279edd9008ee35b62de156ddac84e31443c Mon Sep 17 00:00:00 2001
From: Alain Volmat <[email protected]>
Date: Fri, 19 Dec 2025 15:30:35 +0100
Subject: [PATCH] media: stm32: dcmipp: bytecap: clear all interrupts upon
stream stop
Ensure that there are no pending interrupts after we have stopped the pipeline. Indeed, it could happen that new interrupt has been generated during the stop_streaming processing hence clear them in order to avoid getting a new interrupt right from the start of a next start_streaming.
--- drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c +3 -0
@@ -512,6 +512,9 @@ static void dcmipp_bytecap_stop_streaming(struct vb2_queue *vq)/* Disable pipe */ reg_clear (vcap,DCMIPP_P0FSCR ,DCMIPP_P0FSCR_PIPEN ); +/* Clear any pending interrupts */ +reg_write (vcap,DCMIPP_CMFCR ,DCMIPP_CMIER_P0ALL ); +spin_lock_irq (&vcap->irqlock);/* Return all queued buffers to vb2 in ERROR state */
Signature · 1 line
2.51.0