stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] media: staging: imx: fix multiple video input
@ 2025-11-05 15:18 Michael Tretter
  2025-11-05 15:18 ` [PATCH 1/2] media: staging: imx: request mbus_config in csi_start Michael Tretter
  2025-11-05 15:18 ` [PATCH 2/2] media: staging: imx: configure src_mux " Michael Tretter
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Tretter @ 2025-11-05 15:18 UTC (permalink / raw)
  To: Steve Longerbeam, Philipp Zabel, Mauro Carvalho Chehab,
	Pengutronix Kernel Team, Fabio Estevam, Hans Verkuil
  Cc: linux-media, imx, linux-arm-kernel, stable, Michael Tretter,
	Michael Tretter

If the IMX media pipeline is configured to receive multiple video
inputs, the second input stream may be broken on start. This happens if
the IMX CSI hardware has to be reconfigured for the second stream, while
the first stream is already running.

The IMX CSI driver configures the IMX CSI in the link_validate callback.
The media pipeline is only validated on the first start. Thus, any later
start of the media pipeline skips the validation and directly starts
streaming. This may leave the hardware in an inconsistent state compared
to the driver configuration. Moving the hardware configuration to the
stream start to make sure that the hardware is configured correctly.

Patch 1 removes the caching of the upstream mbus_config in
csi_link_validate and explicitly request the mbus_config in csi_start,
to get rid of this implicit dependency.

Patch 2 actually moves the hardware register setting from
csi_link_validate to csi_start to fix the skipped hardware
reconfiguration.

Signed-off-by: Michael Tretter <michael.tretter@pengutronix.de>
---
Michael Tretter (2):
      media: staging: imx: request mbus_config in csi_start
      media: staging: imx: configure src_mux in csi_start

 drivers/staging/media/imx/imx-media-csi.c | 84 ++++++++++++++++++-------------
 1 file changed, 48 insertions(+), 36 deletions(-)
---
base-commit: 27afd6e066cfd80ddbe22a4a11b99174ac89cced
change-id: 20251105-media-imx-fixes-acef77c7ba12

Best regards,
-- 
Michael Tretter <m.tretter@pengutronix.de>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-11-05 16:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05 15:18 [PATCH 0/2] media: staging: imx: fix multiple video input Michael Tretter
2025-11-05 15:18 ` [PATCH 1/2] media: staging: imx: request mbus_config in csi_start Michael Tretter
2025-11-05 16:47   ` Frank Li
2025-11-05 15:18 ` [PATCH 2/2] media: staging: imx: configure src_mux " Michael Tretter
2025-11-05 15:33   ` Philipp Zabel
2025-11-05 16:53   ` Frank Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).