[PATCH v4 1/9] regulator: core: Add "enable and wait" functions

Mark Brown broonie at kernel.org
Wed Aug 12 11:02:25 PDT 2026


On Wed, Aug 12, 2026 at 12:39:42PM +0800, Chen-Yu Tsai wrote:
> On Tue, Aug 11, 2026 at 8:43 PM Mark Brown <broonie at kernel.org> wrote:

> > Just take a timestamp during registration if the regulator is enabled,
> > we check if it's enabled anyway so we may as well take that as the last
> > time the enable happened.

> Yeah, I just haven't figured out where exactly in regulator_register() to
> put it. I think it should be after the supplies are resolved, so maybe
> I could do this in the "final setup" part in regulator_resolve_supply()?

Makes sense I think.  The other place would be while doing the
constraints but they're optional so might not happen.  Perhaps make the
one at the end of registration skip if there's a timestamp already?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260812/1f858583/attachment.sig>


More information about the linux-arm-kernel mailing list