OpenCloudOS-Kernel/include/linux/regulator
Marek Szyprowski 3edd79cf5a
regulator: Fix 'do-nothing' value for regulators without suspend state
Some regulators don't have all states defined and in such cases regulator
core should not assume anything. However in current implementation
of of_get_regulation_constraints() DO_NOTHING_IN_SUSPEND enable value was
set only for regulators which had suspend node defined, otherwise the
default 0 value was used, what means DISABLE_IN_SUSPEND. This lead to
broken system suspend/resume on boards, which had simple regulator
constraints definition (without suspend state nodes).

To avoid further mismatches between the default and uninitialized values
of the suspend enabled/disabled states, change the values of the them,
so default '0' means DO_NOTHING_IN_SUSPEND.

Fixes: 72069f9957a1: regulator: leave one item to record whether regulator is enabled
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
2018-09-03 16:10:40 +01:00
..
ab8500.h regulator: ab8500: Drop AB8540/9540 support 2018-04-16 13:08:59 +01:00
act8865.h regulator: act8865: Pass of_node via act8865_regulator_data 2016-03-28 12:34:20 -07:00
arizona-ldo1.h regulator: arizona-ldo1: Look up a descriptor and pass to the core 2018-05-17 15:42:53 +09:00
arizona-micsupp.h regulator: arizona-micsupp: Move pdata into a separate structure 2017-04-25 16:36:20 +01:00
consumer.h regulator: Don't return or expect -errno from of_map_mode() 2018-04-20 12:45:36 +01:00
da9211.h regulator: da9211: Pass descriptors instead of GPIO numbers 2018-02-16 17:05:52 +00:00
db8500-prcmu.h
driver.h regulator: core: Change suspend_late to suspend 2018-07-05 18:07:45 +01:00
fan53555.h
fixed.h regulator: gpio: Revert 2018-06-07 14:23:08 +01:00
gpio-regulator.h regulator: gpio: Revert 2018-06-07 14:23:08 +01:00
lp872x.h regulator: lp872x: Add enable GPIO pin support 2016-02-05 18:57:09 +00:00
lp3971.h
lp3972.h
machine.h regulator: Fix 'do-nothing' value for regulators without suspend state 2018-09-03 16:10:40 +01:00
max1586.h
max8649.h
max8660.h
max8952.h regulator: max8952: Pass descriptor instead of GPIO number 2018-05-24 16:50:36 +01:00
max8973-regulator.h regulator: max8973: add support for junction thermal warning 2016-04-13 17:19:26 +01:00
mt6311.h
mt6323-regulator.h regulator: mt6323: Add support for MT6323 regulator 2016-07-18 13:46:23 +01:00
mt6380-regulator.h regulator: mt6380: Add support for MT6380 2017-08-15 12:50:48 +01:00
mt6397-regulator.h
of_regulator.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pfuze100.h regulator: pfuze100: add pfuze3001 support 2018-06-18 12:22:39 +01:00
tps6507x.h
tps51632-regulator.h
tps62360.h
userspace-consumer.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00