u-boot/drivers/usb
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
..
cdns3 common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
common common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
dwc3 Merge branch 'next' 2023-10-02 10:55:44 -04:00
emul sandbox: fix sandbox_hub_submit_control_msg() 2023-04-28 11:30:17 -06:00
eth common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
gadget usb: gadget: atmel: fix transfer of queued requests 2023-10-13 13:42:10 +02:00
host usb: ehci: mxs: Use regulator_set_enable_if_allowed() 2023-10-16 08:46:01 +02:00
isp1760 usb: add isp1760 family driver 2022-07-12 21:59:54 +02:00
mtu3 usb: mtu3: flush cache for the first GPD when allocate GPD ring 2021-11-03 08:47:57 +01:00
musb usb: musb: Rename CONFIG_USB_MUSB_TIMEOUT to MUSB_TIMEOUT 2023-01-20 12:27:06 -05:00
musb-new common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
phy rockchip: usb: phy: add rk3066/rk3188 support 2022-06-29 11:28:15 +08:00
ulpi global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
Kconfig usb: Move SPL_USB_STORAGE Kconfig symbol to drivers/usb/ 2023-05-17 01:51:39 +02:00