linux_dsm_epyc7002/drivers/regulator
Mark Brown 50f075963f regulator: Don't increment use_count for boot_on regulators
Don't set use_count for regulators that are enabled at boot since this
stops the supply being disabled by well-behaved consumers which do
balanced enables and disabled. Any consumers which don't do disables
which are not matched by enables are unable to share regulators - shared
regulators are the common case so the API should facilitate them.

Consumers that want to disable regulators that are enabled when they
start have two options:

 - Do a regulator_enable() prior to the disable to bring the use count
   in sync with the hardware state; this will ensure that if the
   regulator was enabled by another driver then this consumer will play
   nicely with it.
 - Use regulator_force_disable(); this explicitly bypasses any checks
   done by the core and documents the inability of the driver to share
   the supply.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2009-03-31 09:56:29 +01:00
..
bq24022.c regulator: Allow init data to be supplied for bq24022 2009-03-31 09:56:21 +01:00
core.c regulator: Don't increment use_count for boot_on regulators 2009-03-31 09:56:29 +01:00
da903x.c regulator: Pass regulator init data as explict argument when registering 2009-03-31 09:56:21 +01:00
fixed.c regulator: Allow init_data to be passed to fixed voltage regulators 2009-03-31 09:56:21 +01:00
Kconfig regulator: twl4030 regulators 2009-03-31 09:56:25 +01:00
Makefile regulator: twl4030 regulators 2009-03-31 09:56:25 +01:00
pcf50633-regulator.c regulator: Pass regulator init data as explict argument when registering 2009-03-31 09:56:21 +01:00
twl4030-regulator.c twl4030-regulator: expose VPLL2 2009-03-31 09:56:28 +01:00
virtual.c regulator: Mark attributes table for virtual regulator static 2009-03-31 09:56:22 +01:00
wm8350-regulator.c regulator: Implement list_voltage for WM835x LDOs and DCDCs 2009-03-31 09:56:27 +01:00
wm8400-regulator.c regulator: Implement list_voltage() for WM8400 DCDCs and LDOs 2009-03-31 09:56:26 +01:00