mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
Merge "usb: dwc3: Don't touch gadget->max_speed while limiting the speed"
This commit is contained in:
commit
f8e18e2c31
2 changed files with 2 additions and 4 deletions
|
|
@ -3752,10 +3752,8 @@ skip_update:
|
|||
dwc->maximum_speed, dwc->max_hw_supp_speed,
|
||||
mdwc->override_usb_speed);
|
||||
if (mdwc->override_usb_speed &&
|
||||
mdwc->override_usb_speed <= dwc->maximum_speed) {
|
||||
mdwc->override_usb_speed <= dwc->maximum_speed)
|
||||
dwc->maximum_speed = mdwc->override_usb_speed;
|
||||
dwc->gadget.max_speed = dwc->maximum_speed;
|
||||
}
|
||||
|
||||
dbg_event(0xFF, "speed", dwc->maximum_speed);
|
||||
|
||||
|
|
|
|||
|
|
@ -4431,7 +4431,7 @@ int dwc3_gadget_init(struct dwc3 *dwc)
|
|||
dev_info(dwc->dev, "changing max_speed on rev %08x\n",
|
||||
dwc->revision);
|
||||
|
||||
dwc->gadget.max_speed = dwc->maximum_speed;
|
||||
dwc->gadget.max_speed = dwc->max_hw_supp_speed;
|
||||
|
||||
/*
|
||||
* REVISIT: Here we should clear all pending IRQs to be
|
||||
|
|
|
|||
Loading…
Reference in a new issue