]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: ehci-generic: Use regulator_set_enable_if_allowed
authorJonas Karlman <jonas@kwiboo.se>
Wed, 19 Jul 2023 21:20:57 +0000 (21:20 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 14 Aug 2023 13:14:41 +0000 (09:14 -0400)
commit0830333c474379e0249c07fb15c5fe80880fcd36
treea62dbee74f282656668c34c679d196461efb8813
parent335799b7252a1d9125bf9565119d771b8599b6b3
usb: ehci-generic: Use regulator_set_enable_if_allowed

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@kwiboo.se>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ehci-generic.c