aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-gadget.c
diff options
context:
space:
mode:
authorMayank Rana <[email protected]>2022-05-04 19:36:41 +0000
committerGreg Kroah-Hartman <[email protected]>2022-05-19 16:14:16 +0000
commit9d778f0c5f95ca5aa2ff628ea281978697e8d89b (patch)
tree05a56d3fe9278b775de4b544ab74446881c8d4cc /drivers/usb/cdns3/cdns3-gadget.c
parentusb: Probe EHCI, OHCI controllers asynchronously (diff)
downloadkernel-9d778f0c5f95ca5aa2ff628ea281978697e8d89b.tar.gz
kernel-9d778f0c5f95ca5aa2ff628ea281978697e8d89b.zip
usb: dwc3: Fix ep0 handling when getting reset while doing control transfer
According to the databook ep0 should be in setup phase during reset. If host issues reset between control transfers, ep0 will be in an invalid state. Fix this by issuing stall and restart on ep0 if it is not in setup phase. Also SW needs to complete pending control transfer and setup core for next setup stage as per data book. Hence check ep0 state during reset interrupt handling and make sure active transfers on ep0 out/in endpoint are stopped by queuing ENDXFER command for that endpoint and restart ep0 out again to receive next setup packet. Signed-off-by: Mayank Rana <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
0 files changed, 0 insertions, 0 deletions