aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2019-09-11 11:33:51 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2019-10-24 11:28:17 +0200
commit1a63e5e5fbfff7779ce24b404bef3b8ccddf1a8b (patch)
treefd297a3c26f3c80beb42bbe05967f88cb82d2e11 /drivers/usb/dwc3
parentb575e909168ca559609f6793720c4811b1dd55fd (diff)
downloadu-boot-1a63e5e5fbfff7779ce24b404bef3b8ccddf1a8b.zip
u-boot-1a63e5e5fbfff7779ce24b404bef3b8ccddf1a8b.tar.gz
u-boot-1a63e5e5fbfff7779ce24b404bef3b8ccddf1a8b.tar.bz2
usb: dwc3-generic: if no max speed is specified in DT, assume super speed
There is no need to fail if the maximum speed is not specified. If the speed is not specified, do the same as linux and assume super speed. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/dwc3-generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c
index 4924d07..a3b6508 100644
--- a/drivers/usb/dwc3/dwc3-generic.c
+++ b/drivers/usb/dwc3/dwc3-generic.c
@@ -89,8 +89,8 @@ static int dwc3_generic_ofdata_to_platdata(struct udevice *dev)
plat->maximum_speed = usb_get_maximum_speed(node);
if (plat->maximum_speed == USB_SPEED_UNKNOWN) {
- pr_err("Invalid usb maximum speed\n");
- return -ENODEV;
+ pr_info("No USB maximum speed specified. Using super speed\n");
+ plat->maximum_speed = USB_SPEED_SUPER;
}
plat->dr_mode = usb_get_dr_mode(node);