[PATCH 4/5] mmc: Use regulator_set_enable_if_allowed

Simon Glass sjg at chromium.org
Thu Jul 27 02:49:50 CEST 2023


On Wed, 19 Jul 2023 at 15:21, Jonas Karlman <jonas at kwiboo.se> wrote:
>
> With the commit 4fcba5d556b4 ("regulator: implement basic reference
> counter") the return value of regulator_set_enable may be EALREADY or
> EBUSY for fixed/gpio regulators.
>
> Change to use the more relaxed regulator_set_enable_if_allowed to
> continue if regulator already was enabled or disabled.
>
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
> ---
>  drivers/mmc/mmc.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>
Tested-by: Simon Glass <sjg at chromium.org>  # rockpro64-rk3399


More information about the U-Boot mailing list