diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2020-10-21 14:17:31 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2020-11-22 13:18:20 +0100 |
commit | e7f9e1fca9b0563e5e83c5d2c5164bdda5948227 (patch) | |
tree | 93f56f0c8bd61e57c24412312f8814e47514f465 /drivers/usb | |
parent | 5739ef2bcb6dc04414d9a06063d4c85e793884ba (diff) | |
download | u-boot-e7f9e1fca9b0563e5e83c5d2c5164bdda5948227.zip u-boot-e7f9e1fca9b0563e5e83c5d2c5164bdda5948227.tar.gz u-boot-e7f9e1fca9b0563e5e83c5d2c5164bdda5948227.tar.bz2 |
usb: dwc3: Handle case where setup_phy is not needed
If CONFIG_PHY is not enabled then the dwc3_setup_phy()
returns ENOTSUPP which can be still valid and intentional
so modify error check to handle this -ENOTSUPP.
The same error handling exists in drivers/usb/host/xhci-dwc3.c already
added by commit d648a50c0a27 ("dwc3: move phy operation to core.c").
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/dwc3/dwc3-generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 36fa16a..a936f71 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -74,7 +74,7 @@ static int dwc3_generic_probe(struct udevice *dev, } rc = dwc3_setup_phy(dev, &priv->phys); - if (rc) + if (rc && rc != -ENOTSUPP) return rc; if (device_is_compatible(dev->parent, "rockchip,rk3399-dwc3")) |