From: sashiko-bot@kernel.org
To: "Lachlan Michael" <lachlan.michael@sony.com>
Cc: devicetree@vger.kernel.org, media-ci@linuxtv.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 2/2] media: i2c: Add Sony IMX908 image sensor driver
Date: Thu, 06 Aug 2026 07:26:18 +0000 [thread overview]
Message-ID: <20260806072619.518561F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260806070934.21764-3-lachlan.michael@sony.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Setting V4L2 controls fails unconditionally with `-EINVAL` when `CONFIG_PM` is disabled, preventing streaming.
--
--- Patch [2]: [PATCH v2 2/2] media: i2c: Add Sony IMX908 image sensor driver ---
commit 92ff772dc92c29c7cb738f917f95440d0e6be72c
Author: Lachlan Michael <lachlan.michael@sony.com>
media: i2c: Add Sony IMX908 image sensor driver
This commit introduces a V4L2 sub-device driver for the Sony IMX908
8.39 megapixel CMOS image sensor. The driver supports RAW10 and RAW12
output formats and configures the MIPI CSI-2 interface.
> diff --git a/drivers/media/i2c/imx908.c b/drivers/media/i2c/imx908.c
> new file mode 100644
> --- /dev/null
> +++ b/drivers/media/i2c/imx908.c
[ ... ]
> @@ -0,0 +1,1501 @@
[ ... ]
> +static int imx908_set_ctrl(struct v4l2_ctrl *ctrl)
> +{
[ ... ]
> + /* Hardware writes only when powered; cached ctrls applied on resume */
> + ret = pm_runtime_get_if_in_use(imx->dev);
> + if (ret <= 0)
> + return ret;
[Severity: Medium]
When the kernel is compiled with CONFIG_PM=n, the inline stub for
pm_runtime_get_if_in_use() returns -EINVAL. Will this cause
imx908_set_ctrl() to unconditionally return -EINVAL in that configuration,
aborting __v4l2_ctrl_handler_setup() and preventing the stream from
starting?
Could this check be adjusted to handle the CONFIG_PM=n case by treating
-EINVAL as success, falling through to access the hardware since it would
be continuously powered in that configuration?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260806070934.21764-1-lachlan.michael@sony.com?part=2
next prev parent reply other threads:[~2026-08-06 7:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 7:09 [PATCH v2 0/2] Add bindings and driver for Sony IMX908 Lachlan Michael
2026-08-06 7:09 ` [PATCH v2 1/2] media: dt-bindings: imx908: Add Sony IMX908 sensor Lachlan Michael
2026-08-06 7:20 ` sashiko-bot
2026-08-12 2:16 ` Rob Herring
2026-08-06 7:09 ` [PATCH v2 2/2] media: i2c: Add Sony IMX908 image sensor driver Lachlan Michael
2026-08-06 7:26 ` sashiko-bot [this message]
2026-08-06 16:50 ` Dave Stevenson
2026-08-07 6:53 ` Jai Luthra
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=20260806072619.518561F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lachlan.michael@sony.com \
--cc=media-ci@linuxtv.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.