u-boot/drivers/power/regulator
John Keeping 8edf7ac09f power: regulator: fix autoset error handling
If a regulator does not support .set_suspend_enable or
.set_suspend_value then ret is set to ENOSYS early in the function.

The most serious impact of this is that when no automatic setting of
voltage is needed then the final regulator_set_enable() is skipped
because ret has not been cleared.

It seems that the error handling for regulator_set_suspend_value() is
also wrong as if this succeeds then the normal boot-on checks are still
required, and again ENOSYS needs special treatment here.

Fixes: 11406b8f7e ("dm: regulator: support regulator more state")
Signed-off-by: John Keeping <john@metanate.com>
2022-10-26 11:47:12 +09:00
..
act8846.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
anatop_regulator.c power: regulator: add driver for ANATOP regulator 2021-04-20 07:31:12 -04:00
as3722_regulator.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
bd71837.c regulator: bd718x7: Bypass bogus warnings 2022-02-05 15:49:01 +01:00
da9063.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
fan53555.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
fixed.c regulator: fixed: add possibility to enable by clock 2022-04-12 19:10:44 +02:00
gpio-regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
Kconfig spl: Ensure all SPL symbols in Kconfig have some SPL dependency 2022-07-07 09:29:08 -04:00
lp873x_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
lp87565_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
Makefile pmic: pca9450: Add regulator driver 2022-05-20 12:36:48 +02:00
max77686.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
palmas_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
pbias_regulator.c dm: core: Access device ofnode through functions 2021-01-05 12:24:41 -07:00
pca9450.c pmic: pca9450: permit config on all bucks and LDOs 2022-07-27 13:04:34 +09:00
pfuze100.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
pwm_regulator.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
regulator-uclass.c power: regulator: fix autoset error handling 2022-10-26 11:47:12 +09:00
regulator_common.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
regulator_common.h dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
rk8xx.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
s2mps11_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
s5m8767.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
sandbox.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
scmi_regulator.c power: regulator: scmi: simplify scmi_voltd_set_enable() 2022-06-23 13:12:56 -04:00
stm32-vrefbuf.c power: regulator: stm32-verfbuf: define LOG_CATEGORY 2021-01-13 09:52:58 +01:00
stpmic1.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
tps62360_regulator.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
tps65090_regulator.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
tps65219_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
tps65910_regulator.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
tps65941_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00