[PATCH v12 66/86] media: ipu6: Use VALIDATE_LATE flag to postpone V4L2 format validation

Sakari Ailus
2026-04-09T20:15:11Z

Postpone V4L2 format validation until streamon time on each video node.
This allows changing V4L2 format on video nodes while performing pipeline
validation through media_pipeline_start().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
drivers/media/pci/intel/ipu6/ipu6-isys.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/pci/intel/ipu6/ipu6-isys.c b/drivers/media/pci/intel/ipu6/ipu6-isys.c
index c9cdeb7054d7..1a2d6b107b73 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-isys.c
+++ b/drivers/media/pci/intel/ipu6/ipu6-isys.c
@@ -209,7 +209,8 @@ static int isys_csi2_create_media_links(struct ipu6_isys *isys)
struct ipu6_isys_video *av = &isys->csi2[i].av[j];

ret = media_create_pad_link(sd, CSI2_PAD_SRC + j,
- &av->vdev.entity, 0, 0);
+ &av->vdev.entity, 0,
+ MEDIA_LNK_FL_VALIDATE_LATE);
if (ret) {
dev_err(dev, "CSI2 can't create link\n");
return ret;
--
2.47.3