From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Xiaolei Wang <xiaolei.wang@windriver.com>
Cc: tarang.raval@siliconsignals.io,
laurent.pinchart@ideasonboard.com,
dave.stevenson@raspberrypi.com, jacopo@jmondi.org,
mchehab@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com,
hverkuil+cisco@kernel.org, johannes.goede@oss.qualcomm.com,
hverkuil-cisco@xs4all.nl, jai.luthra@ideasonboard.com,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/3] media: i2c: ov5647: Switch to using the sub-device state lock
Date: Thu, 8 Jan 2026 00:38:07 +0200 [thread overview]
Message-ID: <aV7gT5j5JVheV6WW@kekkonen.localdomain> (raw)
In-Reply-To: <20260101103001.207194-3-xiaolei.wang@windriver.com>
Hi Xiaolei,
On Thu, Jan 01, 2026 at 06:30:00PM +0800, Xiaolei Wang wrote:
> @@ -1297,9 +1285,16 @@ static int ov5647_probe(struct i2c_client *client)
> if (ret < 0)
> goto power_off;
>
> + sd->state_lock = sensor->ctrls.lock;
> + ret = v4l2_subdev_init_finalize(sd);
> + if (ret < 0) {
> + ret = dev_err_probe(dev, ret, "failed to init subdev\n");
> + goto power_off;
> + }
> +
> ret = v4l2_async_register_subdev(sd);
v4l2_async_register_subdev() needs to be called before enabling Runtime PM
below. Not a fault of this patch but it'd be nice to fix that.
> if (ret < 0)
> - goto power_off;
> + goto v4l2_subdev_cleanup;
>
> /* Enable runtime PM and turn off the device */
> pm_runtime_set_active(dev);
The first patch doesn't seem to apply; I've taken earlier a set of ov5647
patches from Dave, could you rebase this on them? They're in my "cleanup"
branch here
<URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=cleanup>.
--
Kind regards,
Sakari Ailus
next prev parent reply other threads:[~2026-01-07 22:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-01 10:29 [PATCH v4 0/3] media: i2c: ov5647: Modernize driver with CCI and new stream APIs Xiaolei Wang
2026-01-01 10:29 ` [PATCH v4 1/3] media: i2c: ov5647: Convert to CCI register access helpers Xiaolei Wang
2026-01-01 11:15 ` johannes.goede
2026-01-01 11:15 ` johannes.goede
2026-01-01 10:30 ` [PATCH v4 2/3] media: i2c: ov5647: Switch to using the sub-device state lock Xiaolei Wang
2026-01-07 22:38 ` Sakari Ailus [this message]
2026-01-08 0:51 ` xiaolei wang
2026-01-01 10:30 ` [PATCH v4 3/3] media: i2c: ov5647: switch to {enable,disable}_streams Xiaolei Wang
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=aV7gT5j5JVheV6WW@kekkonen.localdomain \
--to=sakari.ailus@linux.intel.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=hverkuil+cisco@kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jacopo@jmondi.org \
--cc=jai.luthra@ideasonboard.com \
--cc=johannes.goede@oss.qualcomm.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=tarang.raval@siliconsignals.io \
--cc=xiaolei.wang@windriver.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®