]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: Ignore late xferNotReady event to prevent halt timeout
authorKuen-Han Tsai <khtsai@google.com>
Thu, 7 Aug 2025 09:06:55 +0000 (17:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:31:10 +0000 (16:31 +0200)
commit900fdc733f84d2b97c9f600a1e5e10e2aadc5c08
tree35cd19978f1c283b9787a0550d93fe23964a4679
parent2f7fc6ec5a11a4235166f0446cb2e9143cd0639b
usb: dwc3: Ignore late xferNotReady event to prevent halt timeout

commit 58577118cc7cec9eb7c1836bf88f865ff2c5e3a3 upstream.

During a device-initiated disconnect, the End Transfer command resets
the event filter, allowing a new xferNotReady event to be generated
before the controller is fully halted. Processing this late event
incorrectly triggers a Start Transfer, which prevents the controller
from halting and results in a DSTS.DEVCTLHLT bit polling timeout.

Ignore the late xferNotReady event if the controller is already in a
disconnected state.

Fixes: 72246da40f37 ("usb: Introduce DesignWare USB3 DRD Driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20250807090700.2397190-1-khtsai@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c