The field dwc->maximum_speed captures the device "maximum-speed" property. If the property is not set, then default the field to the maximum speed the HW supports. This series makes sure that the user input takes precedence and only prints warning if the user specifies a maximum-speed higher than what the HW shows. Thinh Nguyen (2): usb: dwc3: core: Properly default unspecified speed usb: dwc3: core: Print warning on unsupported speed drivers/usb/dwc3/core.c | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) base-commit: a95fcda246dc3e9f5d00222c9a8f0a76aa0bb950 -- 2.11.0