1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-02-18 11:09:28 +01:00
Files
u-boot-megous/drivers
Fabio Estevam 7478c84f3d usb: ehci: mxs: Use regulator_set_enable_if_allowed()
Since commit 4fcba5d556 ("regulator: implement basic reference
counter") the return value of regulator_set_enable() may be EALREADY or
EBUSY for fixed/GPIO regulators.

Switch to using the more relaxed regulator_set_enable_if_allowed() to
continue if regulator already was enabled or disabled.

This fixes the following error when running the 'ums' command:

=> ums 0 mmc 0
UMS: LUN 0, dev mmc 0, hwpart 0, sector 0x0, count 0xece000
Error enabling VBUS supply
g_dnl_register: failed!, error: -114
g_dnl_register failed

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-10-16 08:46:01 +02:00
..
2023-05-02 14:23:58 -04:00
2023-10-02 10:55:44 -04:00
2023-10-11 10:35:24 -04:00
2023-03-02 17:45:58 -05:00
2023-01-20 12:27:24 -05:00
2023-04-25 15:31:28 -04:00