aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEJ Hsu <[email protected]>2019-12-03 23:34:56 -0800
committerFelipe Balbi <[email protected]>2019-12-10 14:56:10 +0200
commite5b5da96da50ef30abb39cb9f694e99366404d24 (patch)
tree7a77ce5e287b2c1b0d023c2805e6b39cd23d34dd /tools/perf/scripts/python
parent2d7b78f59e020b07fc6338eefe286f54ee2d6773 (diff)
usb: gadget: fix wrong endpoint desc
Gadget driver should always use config_ep_by_speed() to initialize usb_ep struct according to usb device's operating speed. Otherwise, usb_ep struct may be wrong if usb devcie's operating speed is changed. The key point in this patch is that we want to make sure the desc pointer in usb_ep struct will be set to NULL when gadget is disconnected. This will force it to call config_ep_by_speed() to correctly initialize usb_ep struct based on the new operating speed when gadget is re-connected later. Reviewed-by: Peter Chen <[email protected]> Signed-off-by: EJ Hsu <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions