]> git.ipfire.org Git - thirdparty/u-boot.git/commit
usb: dwc3: Increase DWC3 controller halt timeout
authorChris Morgan <macromorgan@hotmail.com>
Thu, 15 Jan 2026 23:01:33 +0000 (17:01 -0600)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Fri, 30 Jan 2026 07:59:21 +0000 (08:59 +0100)
commit7590f29e2cd72fb8ed50efde3cdb786d74dc1f10
tree7dc67c05abee4dba39b03edf7d7bbb01b959d50f
parentadd7152eb071619efa150e4b7503f9f333133dbb
usb: dwc3: Increase DWC3 controller halt timeout

Since EP0 transactions need to be completed before the controller halt
sequence is finished, this may take some time depending on the host and the
enabled functions.  Increase the controller halt timeout, so that we give
the controller sufficient time to handle EP0 transfers.

This patch was originally submitted to Linux in 2022, but is required to
use USB gadget mode on my device in U-Boot.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=461ee467507cb98a348fa91ff8460908bb0ea423

Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Link: https://lore.kernel.org/r/20260115230135.183158-3-macroalpha82@gmail.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
drivers/usb/dwc3/gadget.c