Message ID | 20240313072516.241106-39-sakari.ailus@linux.intel.com |
---|---|
State | Superseded |
Headers | show |
Series | [v8,01/38] media: mc: Add INTERNAL pad flag | expand |
Hi Sakari, Thank you for the patch. On Wed, Mar 13, 2024 at 09:25:16AM +0200, Sakari Ailus wrote: > Add immutable route flag to the routing table. > > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Same comment as for patch 37/38. Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> > --- > drivers/media/i2c/ov2740.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c > index 7488b2535071..3e2585eb6ec9 100644 > --- a/drivers/media/i2c/ov2740.c > +++ b/drivers/media/i2c/ov2740.c > @@ -1150,12 +1150,14 @@ static int ov2740_init_state(struct v4l2_subdev *sd, > .sink_pad = OV2740_PAD_PIXEL, > .source_pad = OV2740_PAD_SOURCE, > .source_stream = OV2740_STREAM_PIXEL, > - .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE, > + .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE | > + V4L2_SUBDEV_ROUTE_FL_IMMUTABLE, > }, { > .sink_pad = OV2740_PAD_META, > .source_pad = OV2740_PAD_SOURCE, > .source_stream = OV2740_STREAM_META, > - .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE, > + .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE | > + V4L2_SUBDEV_ROUTE_FL_IMMUTABLE, > }, > }; > struct v4l2_subdev_krouting routing = {
diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c index 7488b2535071..3e2585eb6ec9 100644 --- a/drivers/media/i2c/ov2740.c +++ b/drivers/media/i2c/ov2740.c @@ -1150,12 +1150,14 @@ static int ov2740_init_state(struct v4l2_subdev *sd, .sink_pad = OV2740_PAD_PIXEL, .source_pad = OV2740_PAD_SOURCE, .source_stream = OV2740_STREAM_PIXEL, - .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE, + .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE | + V4L2_SUBDEV_ROUTE_FL_IMMUTABLE, }, { .sink_pad = OV2740_PAD_META, .source_pad = OV2740_PAD_SOURCE, .source_stream = OV2740_STREAM_META, - .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE, + .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE | + V4L2_SUBDEV_ROUTE_FL_IMMUTABLE, }, }; struct v4l2_subdev_krouting routing = {
Add immutable route flag to the routing table. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> --- drivers/media/i2c/ov2740.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)