diff options
author | Tom Rini <trini@konsulko.com> | 2025-06-05 08:40:42 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-06-05 08:40:42 -0600 |
commit | b3f69c14187d413610abbc2b82d1a3752cb342c1 (patch) | |
tree | 63aa82b10575e335a7a9fe2ce3a92cdb7a91e118 /common/usb_onboard_hub.c | |
parent | 27cd65ca1bf16c21818c233c6d658f3e747f5e85 (diff) | |
parent | 77b053502f396e83f6a0ea38d747d6836dc501f0 (diff) |
Merge tag 'xilinx-for-v2025.07-rc4' of https://source.denx.de/u-boot/custodians/u-boot-microblaze
AMD/Xilinx/FPGA changes for v2025.07-rc4
usb:
- Fix regulator handling
net:
- Fix MII clock handling
phy:
- Fix GTR line logic for sgmii
pci:
- Fix pcireg_base logic
fpga:
- Fix change handling in intel_sdm_mb driver
Diffstat (limited to 'common/usb_onboard_hub.c')
-rw-r--r-- | common/usb_onboard_hub.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c index 7fe62b043e6..d17c85dd622 100644 --- a/common/usb_onboard_hub.c +++ b/common/usb_onboard_hub.c @@ -146,7 +146,7 @@ static int usb_onboard_hub_probe(struct udevice *dev) int ret; ret = device_get_supply_regulator(dev, "vdd-supply", &hub->vdd); - if (ret && ret != -ENOENT) { + if (ret && ret != -ENOENT && ret != -ENOSYS) { dev_err(dev, "can't get vdd-supply: %d\n", ret); return ret; } @@ -204,14 +204,16 @@ static int usb_onboard_hub_bind(struct udevice *dev) static int usb_onboard_hub_remove(struct udevice *dev) { struct onboard_hub *hub = dev_get_priv(dev); - int ret; + int ret = 0; if (hub->reset_gpio) dm_gpio_free(hub->reset_gpio->dev, hub->reset_gpio); - ret = regulator_set_enable_if_allowed(hub->vdd, false); - if (ret) - dev_err(dev, "can't disable vdd-supply: %d\n", ret); + if (hub->vdd) { + ret = regulator_set_enable_if_allowed(hub->vdd, false); + if (ret) + dev_err(dev, "can't disable vdd-supply: %d\n", ret); + } return ret; } |