From: sashiko-bot@kernel.org
To: "Danila Tikhonov" <danila@mainlining.org>
Cc: media-ci@linuxtv.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 3/4] drivers: media: i2c: imx471: Add Device Tree matching support
Date: Wed, 05 Aug 2026 20:37:40 +0000 [thread overview]
Message-ID: <20260805203741.C3F661F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260805-imx471-v1-3-7be79f539ed8@mainlining.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] The `dev_pm_ops` structure pointer `&imx471_pm_ops` is incorrectly wrapped with `pm_sleep_ptr()`, discarding runtime PM callbacks when `CONFIG_PM_SLEEP` is disabled.
--
--- Patch [3]: [PATCH 3/4] drivers: media: i2c: imx471: Add Device Tree matching support ---
commit 0a7fa78c5d7c772d5834bc87176b5fcc9a6246db
Author: Danila Tikhonov <danila@mainlining.org>
drivers: media: i2c: imx471: Add Device Tree matching support
The IMX471 driver currently only supports probing via ACPI. This commit adds
an OF device ID table with the sony,imx471 compatible string to allow
probing on Device Tree based platforms.
> diff --git a/drivers/media/i2c/imx471.c b/drivers/media/i2c/imx471.c
> --- a/drivers/media/i2c/imx471.c
> +++ b/drivers/media/i2c/imx471.c
[ ... ]
> static struct i2c_driver imx471_i2c_driver = {
> .driver = {
> .name = "imx471",
> .acpi_match_table = ACPI_PTR(imx471_acpi_ids),
> + .of_match_table = imx471_of_match,
> .pm = pm_sleep_ptr(&imx471_pm_ops),
[Severity: High]
This is a pre-existing issue, but is it intended to use pm_sleep_ptr() here
instead of pm_ptr()?
When CONFIG_PM is enabled but CONFIG_PM_SLEEP is disabled, pm_sleep_ptr()
evaluates to NULL. This drops the entire dev_pm_ops structure and its runtime
PM callbacks in imx471_i2c_driver.
Will this cause the device to permanently leak power on embedded platforms
because the regulators and clocks are never disabled after probe or between
streams?
> },
> .probe = imx471_probe,
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260805-imx471-v1-0-7be79f539ed8@mainlining.org?part=3
next prev parent reply other threads:[~2026-08-05 20:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 19:54 [PATCH 0/4] Add front-facing camera support for Nothing Phone (1) Danila Tikhonov
2026-08-05 19:54 ` [PATCH 1/4] dt-bindings: media: i2c: Add Sony IMX471 CMOS Image Sensor Danila Tikhonov
2026-08-06 10:33 ` Sakari Ailus
2026-08-05 19:54 ` [PATCH 2/4] drivers: media: i2c: imx471: Add vdig and vif power supplies Danila Tikhonov
2026-08-05 19:54 ` [PATCH 3/4] drivers: media: i2c: imx471: Add Device Tree matching support Danila Tikhonov
2026-08-05 20:37 ` sashiko-bot [this message]
2026-08-05 19:54 ` [PATCH 4/4] arm64: dts: qcom: sm7325-nothing-spacewar: Add front camera support Danila Tikhonov
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=20260805203741.C3F661F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=danila@mainlining.org \
--cc=devicetree@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox