mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 15:34:55 +00:00
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-usb
This commit is contained in:
commit
5d899fc58c
1 changed files with 3 additions and 3 deletions
|
@ -246,12 +246,12 @@ static int dwc3_generic_host_probe(struct udevice *dev)
|
|||
return rc;
|
||||
|
||||
rc = device_get_supply_regulator(dev, "vbus-supply", &priv->vbus_supply);
|
||||
if (rc)
|
||||
if (rc && rc != -ENOSYS)
|
||||
debug("%s: No vbus regulator found: %d\n", dev->name, rc);
|
||||
|
||||
/* Only returns an error if regulator is valid and failed to enable due to a driver issue */
|
||||
/* Does not return an error if regulator is invalid - but does so when DM_REGULATOR is disabled */
|
||||
rc = regulator_set_enable_if_allowed(priv->vbus_supply, true);
|
||||
if (rc)
|
||||
if (rc && rc != -ENOSYS)
|
||||
return rc;
|
||||
|
||||
hccr = (struct xhci_hccr *)priv->gen_priv.base;
|
||||
|
|
Loading…
Add table
Reference in a new issue