]> git.dujemihanovic.xyz Git - u-boot.git/commit
power: regulator: Handle autoset in regulators_enable_boot_on()
authorSimon Glass <sjg@chromium.org>
Thu, 27 Jun 2024 08:29:46 +0000 (09:29 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 28 Jun 2024 19:54:52 +0000 (13:54 -0600)
commitac91baea6d8292295aeb63c40ec4261d7c47217e
tree8b030abdbcd3658c7338c4fba5c31926f2d9bc38
parentbbc46241a19dcdc10ba88adb2eaf076e6ac4cb0e
power: regulator: Handle autoset in regulators_enable_boot_on()

With a recent change, regulators_enable_boot_on() returns an error if a
regulator is already set. Check for and handle this situation.

Fixes: d99fb64a98a power: regulator: Only run autoset once for each regulator
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
drivers/power/regulator/regulator-uclass.c