Commit 19803140 authored by Wesley Cheng's avatar Wesley Cheng Committed by Todd Kjos
Browse files

UPSTREAM: usb: dwc3: gadget: Continue handling EP0 xfercomplete events



During soft disconnect, EP0 events are expected to be handled in order to
allow the controller to successfully move into the halted state.  Since
__dwc3_gadget_stop() is executed before polling, EP0 has been disabled, and
events are being blocked.  Allow xfercomplete events to be handled, so that
cached SETUP packets can be read out from the internal controller memory.

Without doing so, it will lead to endxfer timeouts, which results to
controller halt failures.

Reviewed-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20220817182359.13550-5-quic_wcheng@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit dff98184)

Bug: 263189538
Change-Id: Id9cbfacd05a351fda689b6845d2469c5e7e7e51b
Signed-off-by: default avatarKrishna Kurapati <quic_kriskura@quicinc.com>
parent 0bbc89c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment