]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
media: atomisp: Make MC link from ISP to /dev/video# output node immutable
authorHans de Goede <hdegoede@redhat.com>
Sun, 4 Feb 2024 16:41:15 +0000 (17:41 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 11 Apr 2024 13:40:29 +0000 (15:40 +0200)
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 <kieran.bingham@ideasonboard.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c

index 9a0853be0e795f300d47583d12f6bbf086e828af..26020be69334a4994fca7b644bc6456969c3210a 100644 (file)
@@ -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;