diff options
author | Roger Quadros <[email protected]> | 2017-10-31 15:56:29 +0200 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2017-11-28 13:05:31 +0200 |
commit | a4f0927ef588cf62bb864707261482c874352942 (patch) | |
tree | 2bc9d7f51dadd89a053a99223bc5fa74c5b7c200 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 7a9618a22aadffb55027d665491adf466bced61a (diff) |
usb: gadget: core: Fix ->udc_set_speed() speed handling
Currently UDC core calls ->udc_set_speed() with the speed parameter
containing the maximum speed supported by the gadget function
driver. This might very well be more than that supported by the
UDC controller driver.
Select the lesser of the 2 speeds so both UDC and gadget function
driver are operating within limits.
This fixes PHY Erratic errors and 2 second enumeration delay on
TI's AM437x platforms.
Fixes: 6099eca796ae ("usb: gadget: core: introduce ->udc_set_speed() method")
Cc: <[email protected]> # v4.13+
Reported-by: Dylan Howey <[email protected]>
Signed-off-by: Roger Quadros <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions