]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Allow regulators to verify enabled during enable()
authorSumit Semwal <sumit.semwal@linaro.org>
Mon, 22 Jun 2020 12:41:07 +0000 (18:11 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 15 Jul 2020 14:47:15 +0000 (15:47 +0100)
commit14578cd40543ffaf081b540712927608d0056c53
tree754388c8a5bef1986a093f27c2849c47b145055e
parentb95f1f2dcdf1b625a0ea3777244e2dae8bb0eb4c
regulator: Allow regulators to verify enabled during enable()

Some regulators might need to verify that they have indeed been enabled
after the enable() call is made and enable_time delay has passed.

This is implemented by repeatedly checking is_enabled() upto
poll_enabled_time, waiting for the already calculated enable delay in
each iteration.

Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://lore.kernel.org/r/20200622124110.20971-2-sumit.semwal@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
include/linux/regulator/driver.h