[PATCH 2/2] usb: ehci-mx6: Use regulator_set_enable_if_allowed

Fabio Estevam festevam at gmail.com
Wed Jan 8 02:20:20 CET 2025


On Tue, Jan 7, 2025 at 7:56 PM Marek Vasut <marex at denx.de> 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.
>
> Based on 335799b7252a ("usb: dwc2: Use regulator_set_enable_if_allowed")
>
> Signed-off-by: Marek Vasut <marex at denx.de>

Reviewed-by: Fabio Estevam <festevam at gmail.com>


More information about the U-Boot mailing list