From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Maurizio Casciano <mauriziocasciano7@gmail.com>
Cc: linux-media@vger.kernel.org,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
Nicholas Roth <nicholas@rothemail.net>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Bingbu Cao <bingbu.cao@amd.com>,
Dan Scally <dan.scally@ideasonboard.com>,
Hans de Goede <hansg@kernel.org>,
Andy Shevchenko <andy@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: [PATCH v11 14/14] media: atomisp: Preserve the capture graph when a lens rebinds
Date: Mon, 23 Nov 2026 12:42:24 +0200 [thread overview]
Message-ID: <awQYkJLnmiZe9jxg@ashevche-desk.local> (raw)
In-Reply-To: <e19d87138eaf283350f85ace17ee9ee4563e9423.1795267528.git.mauriziocasciano7@gmail.com>
On Sat, Nov 21, 2026 at 02:31:44PM +0100, Maurizio Casciano wrote:
> The root notifier completes again when the lens subdevice is rebound.
> Rebuilding the entire graph adds the original sensors a second time
> and attempts to register the capture video device again.
>
> If the capture node already exists and the sensors are unchanged,
> register only missing subdevice nodes. Reject a changed sensor graph until
> the driver is reinitialized. The preceding V4L2 rollback fix keeps
> existing sensor nodes if new node registration fails. The X91L rebind
> trial exposed the original issue. Codex drafted the notifier change.
>
> Link: https://linuxtv.org/mailman3/hyperkitty/list/media-ci@linuxtv.org/message/2PUHZIDBEIGQKGXTJJOUXXJS2EOEMJGD/
Don't put unreferred Link tags.
...
> static int atomisp_notifier_complete(struct v4l2_async_notifier *notifier)
> {
> struct atomisp_device *isp = notifier_to_atomisp(notifier);
> + unsigned int i;
>
> - return atomisp_register_device_nodes(isp);
> + if (!video_is_registered(&isp->asd.video_out.vdev))
> + return atomisp_register_device_nodes(isp);
> +
> + /*
> + * Completing the lens notifier again only needs a new lens node.
> + * The existing graph is valid as long as its sensors are unchanged.
> + */
> + for (i = 0; i < isp->input_cnt; i++) {
for (unsigned int i = 0; i < isp->input_cnt; i++) {
> + const struct atomisp_input_subdev *input = &isp->inputs[i];
> +
> + if (input->csi_remote_source != isp->sensor_subdevs[input->port])
> + return -EBUSY;
> + }
> +
> + return v4l2_device_register_subdev_nodes(&isp->v4l2_dev);
> }
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2026-11-23 10:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 13:31 [PATCH v11 00/14] media: Add Lenovo Yoga Book camera support Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 01/14] media: v4l2-core: Preserve existing subdevice nodes on rollback Maurizio Casciano
2026-11-21 13:53 ` Laurent Pinchart
2026-11-21 16:24 ` Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 02/14] media: ov8858: Extract digital gain programming Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 03/14] media: ov8858: Support a 19.2 MHz input clock on four-lane R2A Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 04/14] media: ov2740: Add OVTI2740 ACPI ID Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 05/14] media: intel: ipu-bridge: Add the Yoga Book OVTI2740 entry Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 06/14] media: atomisp: Add Yoga Book camera configuration Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 07/14] media: ov2740: support 288 MHz link frequency Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 08/14] media: intel: ipu-bridge: select OV2740 frequency by IPU ID Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 09/14] media: atomisp: Derive CSI-2 timing from the sensor link frequency Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 10/14] media: ov2740: release group hold after gain write errors Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 11/14] media: atomisp: Use struct v4l2_area for padding Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 12/14] media: atomisp: Allow raw Bayer capture Maurizio Casciano
2026-11-21 13:31 ` [PATCH v11 13/14] media: i2c: Add WV517S lens actuator driver Maurizio Casciano
2026-11-23 10:40 ` Andy Shevchenko
2026-11-21 13:31 ` [PATCH v11 14/14] media: atomisp: Preserve the capture graph when a lens rebinds Maurizio Casciano
2026-11-23 10:42 ` Andy Shevchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awQYkJLnmiZe9jxg@ashevche-desk.local \
--to=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=bingbu.cao@amd.com \
--cc=dan.scally@ideasonboard.com \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=jacopo.mondi@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mauriziocasciano7@gmail.com \
--cc=mchehab@kernel.org \
--cc=nicholas@rothemail.net \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®