]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: resolve supply for boot-on/always-on regulators
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 19 May 2021 22:12:23 +0000 (01:12 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 20 May 2021 21:00:11 +0000 (22:00 +0100)
commit3f341f51e0fad875b7a25298b9a8bf9cbc9f38a5
tree22e798561c4f6b618a6cb86db7f5c46d701b8827
parent02be9d42c4ae3a9e5b172976eddd2adb4b5fd3cf
regulator: core: resolve supply for boot-on/always-on regulators

For the boot-on/always-on regulators the set_machine_constrainst() is
called before resolving rdev->supply. Thus the code would try to enable
rdev before enabling supplying regulator. Enforce resolving supply
regulator before enabling rdev.

Fixes: b40da59ec845 ("regulator: resolve supply after creating regulator")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20210519221224.2868496-1-dmitry.baryshkov@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c