Commit ad3483c
committed
usb: dwc2: gadget: avoid stop disabled interrupt ep
When we test RK3308 USB gadget with UAC + HID composite
function, connect to PC USB Host, and do hotplug test.
The HID may fail to do ep in transfer. It's because that
when USB disconnect, the dwc2 call dwc2_hsotg_ep_disable()
to disable all enabled endpoints. However, for HID in ep,
the dwc2 call dwc2_hsotg_ep_stop_xfr() to stop transfer
even if the HID in ep has been disabled. This cause HID
in ep transfer fail when USB connect next time.
Fixes: 0ba9849 ("usb: dwc2: gadget: stop isoc ep in transfer when disable ep")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I316410ec8ff30cf5e298cfcad327456dbae4e9701 parent 1bc5506 commit ad3483c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3330 | 3330 | | |
3331 | 3331 | | |
3332 | 3332 | | |
3333 | | - | |
| 3333 | + | |
| 3334 | + | |
3334 | 3335 | | |
3335 | 3336 | | |
3336 | 3337 | | |
| |||
0 commit comments