diff mbox series

[U-Boot,v4,08/15] usb: dwc3-generic: if no max speed is specified in DT, assume super speed

Message ID 20190911093358.25290-9-jjhiblot@ti.com
State Accepted
Commit 1a63e5e5fbfff7779ce24b404bef3b8ccddf1a8b
Delegated to: Marek Vasut
Headers show
Series Improvement for the DWC3 USB generic driver and fixes for the K2 platforms | expand

Commit Message

Jean-Jacques Hiblot Sept. 11, 2019, 9:33 a.m. UTC
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>


Changes in v4: None
Changes in v3:
- updated log message when defaulting to super speed

Changes in v2: None

 drivers/usb/dwc3/dwc3-generic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series


diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c
index 4924d07553..a3b65088f1 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);