]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Support bypass mode
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 31 Aug 2012 17:36:37 +0000 (10:36 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Sep 2012 03:25:10 +0000 (11:25 +0800)
commitca501943d413096eeb22a4bd7256cf223885ef89
tree8913b43ef7c4799323cc0d14fc1447da5ca2e052
parentb2e1336c8ef589c73e50248b4aa2b3a85299e0be
regulator: core: Support bypass mode

Many regulators support a bypass mode where they simply switch their
input supply to the output. This is mainly used in low power retention
states where power consumption is extremely low so higher voltage or
less clean supplies can be used.

Support this by providing ops for the drivers and a consumer API which
allows the device to be put into bypass mode if all consumers enable it
and the machine enables permission for this.

This is not supported as a mode since the existing modes are rarely used
due to fuzzy definition and mostly redundant with modern hardware which is
able to respond promptly to load changes.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: Graeme Gregory <gg@slimlogic.co.uk>
Documentation/ABI/testing/sysfs-class-regulator
drivers/regulator/core.c
include/linux/regulator/consumer.h
include/linux/regulator/driver.h
include/linux/regulator/machine.h