summaryrefslogtreecommitdiffstats
path: root/arch/h8300
diff options
context:
space:
mode:
authorWesley Cheng <wcheng@codeaurora.org>2021-08-25 06:28:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-26 13:48:58 +0200
commit4a1e25c0a029b97ea4a3d423a6392bfacc3b2e39 (patch)
tree03bd930f42b639f1f32f16fa81afd953d0d2f7a3 /arch/h8300
parentusb: dwc3: gadget: Fix dwc3_calc_trbs_left() (diff)
downloadlinux-4a1e25c0a029b97ea4a3d423a6392bfacc3b2e39.tar.xz
linux-4a1e25c0a029b97ea4a3d423a6392bfacc3b2e39.zip
usb: dwc3: gadget: Stop EP0 transfers during pullup disable
During a USB cable disconnect, or soft disconnect scenario, a pending SETUP transaction may not be completed, leading to the following error: dwc3 a600000.dwc3: timed out waiting for SETUP phase If this occurs, then the entire pullup disable routine is skipped and proper cleanup and halting of the controller does not complete. Instead of returning an error (which is ignored from the UDC perspective), allow the pullup disable routine to continue, which will also handle disabling of EP0/1. This will end any active transfers as well. Ensure to clear any delayed_status also, as the timeout could happen within the STATUS stage. Fixes: bb0147364850 ("usb: dwc3: gadget: don't clear RUN/STOP when it's invalid to do so") Cc: <stable@vger.kernel.org> Reviewed-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Acked-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Wesley Cheng <wcheng@codeaurora.org> Link: https://lore.kernel.org/r/20210825042855.7977-1-wcheng@codeaurora.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/h8300')
0 files changed, 0 insertions, 0 deletions