u-boot/drivers/power
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
..
acpi_pmc spl: Ensure all SPL symbols in Kconfig have some SPL dependency 2022-07-07 09:29:08 -04:00
battery common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
domain firmware: zynqmp: Skip loading config object for Versal 2022-09-13 11:32:48 +02:00
fuel_gauge common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mfd common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pmic sandbox: power: Update PMIC driver to use log 2022-09-29 16:07:57 -04:00
regulator power: regulator: fix autoset error handling 2022-10-26 11:47:12 +09:00
axp152.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp209.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp221.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp305.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp809.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp818.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
exynos-tmu.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
ftpmu010.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig Convert CONFIG_PALMAS_POWER to Kconfig 2022-07-07 09:29:08 -04:00
Makefile power: Refactor Makefile rules 2021-09-04 12:26:02 -04:00
mt6323.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
palmas.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
power_core.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
power_dialog.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
power_fsl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
power_i2c.c imx: imx8mn_evk: correct stack/malloc adress 2021-01-23 11:30:30 +01:00
power_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sy8106a.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tps6586x.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
twl4030.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
twl6030.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00