From: Bryan O'Donoghue <bod@kernel.org>
To: George Neacsu <geocausa@gmail.com>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
Sergey Lebedev <lsa.uz@pm.me>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
German Pablo Lindo <germanpapulindez@gmail.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] media: i2c: ov13858: Add device tree support
Date: Fri, 16 Oct 2026 21:43:48 +0100 [thread overview]
Message-ID: <711e8518-5054-49ab-8432-346049a86cd1@kernel.org> (raw)
In-Reply-To: <20261016161618.209290-1-geocausa@gmail.com>
On 16/10/2026 17:16, George Neacsu wrote:
> Hi Bryan,
>
> On 16/10/2026 17:06, Bryan O'Donoghue wrote:
>> You describe regulators, clocks and resets in the yaml file which then
>> don't appear to be supported in this result code ?
>>
>> - regulator_bulk_;
>> - clock_bulk_
>> - reset gpio optional
>>
>> I don't think this driver would survive suspend/resume.
>
> The power handling comes from a prerequisite: this series applies on
> top of Sergey's "media: i2c: ov13858: add regulator, clock and reset
> GPIO handling" v3, as the cover letter says, but that is easy to miss
> from 2/2 alone:
> https://lore.kernel.org/all/20260831130312.26296-1-lsa.uz@pm.me/
Hmm if you use b4 to generate your series, the tooling will pull this
type of thing in for you and reviewers like me.
> With it, the driver gets the three supplies with
> devm_regulator_bulk_get(), enables and disables the clock it already
> takes with devm_v4l2_sensor_clk_get(), and takes an optional reset
> GPIO. Power on and power off are the runtime PM callbacks through
> DEFINE_RUNTIME_DEV_PM_OPS(), which also routes system sleep through
> pm_runtime_force_suspend() and pm_runtime_force_resume(). So the binding
> describes what the driver handles once both are applied. On its own,
> 2/2 only adds the OF match and the endpoint checks.
>
> I cannot claim it survives system suspend on the Snapdragon model,
> though.
No its fine, I'll pull that series first. "Wouldn't survive reset"
actually meant "I can't believe this works without powering on the
rails" but the other series does that ;)
System suspend is still an open problem on the Surface Pro 11
> under Linux and has not been validated, so I cannot exercise that path
> here yet. What I can test is the
> runtime PM path, which is where the supplies, clock and reset are
> switched: the sensor powering off between sessions and back on for the
> next stream. I will run repeated open, stream, close cycles and report
> the result. Sergey, if suspend works on the Intel model, a suspend and
> resume test there would cover the rest.
>
> To make the dependency visible, I can carry Sergey's patch as 1/3 of
> the next version, with his authorship. Sergey, would that be all right
> with you, or would you rather post v4 yourself?
No need
b4 prep --edit-deps # add: message-id:
<20260831130312.26296-1-lsa.uz@pm.me>
b4 prep; b4 send
Then dependencies should be represented and sucked in automagically.
>
> Thanks,
> George
next prev parent reply other threads:[~2026-10-16 20:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-15 21:48 [PATCH 0/2] media: ov13858: device tree support for the Surface Pro 11 (Snapdragon) George Neacsu via B4 Relay
2026-10-15 21:48 ` [PATCH 1/2] dt-bindings: media: i2c: Add OmniVision OV13858 George Neacsu via B4 Relay
2026-10-16 20:49 ` Bryan O'Donoghue
2026-10-15 21:48 ` [PATCH 2/2] media: i2c: ov13858: Add device tree support George Neacsu via B4 Relay
2026-10-16 16:06 ` Bryan O'Donoghue
2026-10-16 16:16 ` George Neacsu
2026-10-16 20:43 ` Bryan O'Donoghue [this message]
2026-10-16 21:08 ` Sergey Lebedev
2026-10-16 21:48 ` George Neacsu
2026-10-16 22:25 ` George Neacsu
2026-10-16 7:01 ` [PATCH 0/2] media: ov13858: device tree support for the Surface Pro 11 (Snapdragon) Sergey Lebedev
2026-10-16 14:55 ` George Neacsu
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=711e8518-5054-49ab-8432-346049a86cd1@kernel.org \
--to=bod@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geocausa@gmail.com \
--cc=germanpapulindez@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=lsa.uz@pm.me \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--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