[PATCH v7 1/8] regulator: core: Add "enable and wait" functions

Mark Brown broonie at kernel.org
Thu Nov 19 15:03:05 PST 2026


On Tue, Nov 03, 2026 at 12:37:25PM +0800, Chen-Yu Tsai wrote:
> In device power sequencing and initialization use cases, it is common
> for the driver to enable the regulator and then wait for a certain
> period of time to pass before continuing.

The following changes since commit 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4:

  Linux 7.4-rc1 (2026-11-01 13:26:31 -0800)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/regulator-enable-wait

for you to fetch changes up to 9f9bcca6adc314d35818fc903a2d73898c169062:

  regulator: core: Add "enable and wait" functions (2026-11-07 16:42:09 +0000)

----------------------------------------------------------------
regulator: Add enable and wait functions

Add helpers which smooth and optimise the process of powering on a
regulator then giving the device time to stabalize after it has come up,
taking into account if it was already powered.

----------------------------------------------------------------
Chen-Yu Tsai (1):
      regulator: core: Add "enable and wait" functions

 drivers/regulator/core.c           | 129 ++++++++++++++++++++++++++++++++-----
 include/linux/regulator/consumer.h |  21 ++++--
 include/linux/regulator/driver.h   |   2 +
 rust/helpers/regulator.c           |   5 +-
 rust/kernel/regulator.rs           |   2 +-
 5 files changed, 135 insertions(+), 24 deletions(-)
-------------- 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-mediatek/attachments/20261119/f3d37925/attachment.sig>


More information about the Linux-mediatek mailing list