FAILED: Patch "media: ccs: Fix setting initial sub-device state" failed to apply to 6.12-stable tree
Sasha Levin
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 31e5191aa11931b53e1242acef4f4375f00ca523 Mon Sep 17 00:00:00 2001
From: Sakari Ailus <[email protected]>
Date: Tue, 30 Dec 2025 19:22:02 +0200
Subject: [PATCH] media: ccs: Fix setting initial sub-device state
Fix setting sub-device state for non-source sub-devices.
Fixes 5755be5f15d9 ("media: v4l2-subdev: Rename .init_cfg() operation to .init_state()")
Cc [email protected] # for v6.8 and later
Signed-off-by Sakari Ailus <[email protected]>
Signed-off-by Hans Verkuil <[email protected]>
--- drivers/media/i2c/ccs/ccs-core.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/media/i2c/ccs/ccs-core.c +9 -1
@@ -2940,6 +2940,8 @@ static void ccs_cleanup(struct ccs_sensor *sensor)ccs_free_controls (sensor); } +static const struct v4l2_subdev_internal_ops ccs_internal_ops; + static int ccs_init_subdev(struct ccs_sensor *sensor, struct ccs_subdev *ssd, const char *name, unsigned short num_pads, u32 function,
@@ -2952,8 +2954,10 @@ static int ccs_init_subdev(struct ccs_sensor *sensor,if (!ssd)return 0 ; -if (ssd != sensor->src) +if (ssd != sensor->src) {v4l2_subdev_init (&ssd->sd, &ccs_ops); + ssd->sd.internal_ops = &ccs_internal_ops; + } ssd->sd.flags |=V4L2_SUBDEV_FL_HAS_DEVNODE ; ssd->sd.entity.function = function;
@@ -3062,6 +3066,10 @@ static const struct media_entity_operations ccs_entity_ops = { .link_validate = v4l2_subdev_link_validate, }; +static const struct v4l2_subdev_internal_ops ccs_internal_ops = { + .init_state = ccs_init_state, +}; +static const struct v4l2_subdev_internal_ops ccs_internal_src_ops = { .init_state = ccs_init_state, .registered = ccs_registered,
Signature · 1 line
2.51.0