mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 14:23:00 +00:00
4fcba5d556
Some devices share a regulator supply, when the first one will request regulator disable, the second device will have it's supply cut off before graciously shutting down. Hence there will be timeouts and other failed operations. Implement a reference counter mechanism similar with what is done in Linux, to keep track of enable and disable requests, and only disable the regulator when the last of the consumers has requested shutdown. Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> |
||
---|---|---|
.. | ||
act8846.c | ||
anatop_regulator.c | ||
as3722_regulator.c | ||
axp_regulator.c | ||
axp_usb_power.c | ||
bd71837.c | ||
da9063.c | ||
fan53555.c | ||
fixed.c | ||
gpio-regulator.c | ||
Kconfig | ||
lp873x_regulator.c | ||
lp87565_regulator.c | ||
Makefile | ||
max77686.c | ||
npcm8xx_regulator.c | ||
palmas_regulator.c | ||
pbias_regulator.c | ||
pca9450.c | ||
pfuze100.c | ||
pwm_regulator.c | ||
regulator-uclass.c | ||
regulator_common.c | ||
regulator_common.h | ||
rk8xx.c | ||
s2mps11_regulator.c | ||
s5m8767.c | ||
sandbox.c | ||
scmi_regulator.c | ||
stm32-vrefbuf.c | ||
stpmic1.c | ||
tps62360_regulator.c | ||
tps65090_regulator.c | ||
tps65219_regulator.c | ||
tps65910_regulator.c | ||
tps65941_regulator.c |