[PATCH 4/5] mmc: Use regulator_set_enable_if_allowed

Svyatoslav Ryhel clamor95 at gmail.com
Thu Jul 27 07:55:40 CEST 2023


чт, 20 лип. 2023 р. о 00:21 Jonas Karlman <jonas at kwiboo.se> пише:
>
> 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(-)

Tested-by: Svyatoslav Ryhel <clamor95 at gmail.com> # P895 Tegra 3;
Tegratab Tegra 4


More information about the U-Boot mailing list