[U-Boot] [PATCH v2 0/3] Introduce regulator_set_enable_if_allowed()

Lokesh Vutla lokeshvutla at ti.com
Fri Jan 11 09:45:49 UTC 2019


As per the discussion happenned here[1], introducing a new api
regulator_set_enable_if_allowed() that discards certain error
cases where consumer driver might not be intrested in. Also
using the same api for omap_hsmmc driver which fixes the boot
on dra7-evm.

[1] https://patchwork.ozlabs.org/patch/1018222/

Changes since v1:
- Add dm test for regulator_set_enable_if_allowed.

Lokesh Vutla (3):
  Revert "power: regulator: Return success on attempt to disable an
    always-on regulator"
  power: regulator: Introduce regulator_set_enable_if_allowed api
  mmc: omap_hsmmc: Use regulator_set_enable_if_allowed for enabling
    regulator

 drivers/mmc/omap_hsmmc.c                   | 16 ++++++++--------
 drivers/power/regulator/regulator-uclass.c | 13 ++++++++++++-
 include/power/regulator.h                  | 11 +++++++++++
 test/dm/regulator.c                        | 21 +++++++++++++++++++++
 4 files changed, 52 insertions(+), 9 deletions(-)

-- 
2.19.2



More information about the U-Boot mailing list