Commit a1383b3
usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup
usb_gadget_deactivate/usb_gadget_activate does not execute the UDC start
operation, which may leave EP0 disabled and event IRQs disabled when
re-activating the function. Move the enabling/disabling of USB EP0 and
device event IRQs to be performed in the pullup routine.
Fixes: ae7e861 ("usb: dwc3: Stop active transfers before halting the controller")
Tested-by: Michael Tretter <m.tretter@pengutronix.de>
Cc: stable <stable@vger.kernel.org>
Reported-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Link: https://lore.kernel.org/r/1609282837-21666-1-git-send-email-wcheng@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 718bf42 commit a1383b3
1 file changed
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2083 | 2083 | | |
2084 | 2084 | | |
2085 | 2085 | | |
| 2086 | + | |
2086 | 2087 | | |
2087 | 2088 | | |
2088 | 2089 | | |
| |||
2145 | 2146 | | |
2146 | 2147 | | |
2147 | 2148 | | |
| 2149 | + | |
| 2150 | + | |
2148 | 2151 | | |
2149 | 2152 | | |
2150 | 2153 | | |
| |||
2319 | 2322 | | |
2320 | 2323 | | |
2321 | 2324 | | |
2322 | | - | |
2323 | | - | |
2324 | | - | |
2325 | | - | |
2326 | 2325 | | |
2327 | 2326 | | |
2328 | 2327 | | |
| |||
2348 | 2347 | | |
2349 | 2348 | | |
2350 | 2349 | | |
2351 | | - | |
2352 | | - | |
2353 | | - | |
2354 | | - | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | 2350 | | |
2359 | 2351 | | |
2360 | 2352 | | |
| |||
0 commit comments