From: Hans de Goede Date: Sun, 4 Feb 2024 16:41:15 +0000 (+0100) Subject: media: atomisp: Make MC link from ISP to /dev/video# output node immutable X-Git-Tag: v6.10-rc1~135^2~231 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=185883b28bf66f27e854a1ea2324f645be1df640;p=thirdparty%2Fkernel%2Flinux.git media: atomisp: Make MC link from ISP to /dev/video# output node immutable The link from the ISP's source pad to the /dev/video# output v4l2-dev is always enabled and immutable, mark it as such. Reviewed-by: Kieran Bingham Reviewed-by: Andy Shevchenko Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c index 9a0853be0e795..26020be69334a 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c +++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c @@ -1090,7 +1090,8 @@ int atomisp_register_device_nodes(struct atomisp_device *isp) return err; err = media_create_pad_link(&isp->asd.subdev.entity, ATOMISP_SUBDEV_PAD_SOURCE, - &isp->asd.video_out.vdev.entity, 0, 0); + &isp->asd.video_out.vdev.entity, 0, + MEDIA_LNK_FL_ENABLED | MEDIA_LNK_FL_IMMUTABLE); if (err) return err;