From: Mark Brown <broonie@kernel.org>
To: Romain Gantois <romain.gantois@bootlin.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] regulator: core: do not ignore repeated requests on stepped regulators
Date: Wed, 21 May 2025 13:25:24 +0100 [thread overview]
Message-ID: <9b06c8ac-87a8-49d4-bf0b-89c73ea933ff@sirena.org.uk> (raw)
In-Reply-To: <6190301.lOV4Wx5bFT@fw-rgant>
[-- Attachment #1: Type: text/plain, Size: 688 bytes --]
On Wed, May 21, 2025 at 01:50:22PM +0200, Romain Gantois wrote:
> On Wednesday, 21 May 2025 12:07:05 CEST Mark Brown wrote:
> > No, if there's an issue here we should handle it the first time we set
> > the voltage by doing multiple steps in one set_voltage() call. Having
> > individual client drivers all having to repeatedly call set_voltage() is
> > obviously not a good API.
> Understood, would it make sense to handle this directly in
> regulator_set_voltage_unlocked()? For example by checking for a max_uV_step
> condition and repeating calls to regulator_do_balance_voltage() until the
> resulting voltage stabilizes?
Yes, handling it there seems sensible.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2025-05-21 12:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-21 8:47 Romain Gantois
2025-05-21 10:07 ` Mark Brown
2025-05-21 11:50 ` Romain Gantois
2025-05-21 12:25 ` Mark Brown [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=9b06c8ac-87a8-49d4-bf0b-89c73ea933ff@sirena.org.uk \
--to=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=romain.gantois@bootlin.com \
--cc=thomas.petazzoni@bootlin.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®