CVS commit: [netbsd-11] src/sys/external/bsd/dwc2

"Martin Husemann" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	martin
Date:		Wed Aug 19 11:50:50 UTC 2026

Modified Files:
	src/sys/external/bsd/dwc2 [netbsd-11]: dwc2.c
	src/sys/external/bsd/dwc2/dist [netbsd-11]: dwc2_core.c

Log Message:
Pull up following revision(s) (requested by skrll in ticket #417):

	sys/external/bsd/dwc2/dwc2.c: revision 1.84
	sys/external/bsd/dwc2/dist/dwc2_core.c: revision 1.15

PR/60021: USB-only boot: uhub0 attaches but uhub1 never appears...

Update the dwc2 intial reset sequence to more closely match the upstream
driver - it's changed a bit in the last 10 years.

This reset sequence gets the device out of the state it's left in by the
RaspberryPI firmware when booting from USB.

dwc2: Bring dwc2_wait_for_mode from upstream and use in dwc2_force_mode.

dwc2_wait_for_mode will wait upto 110milliseconds for the controller
to enter the expected mode.

This hopefully fixes
port-evbarm/60613: Recent dwc2 commit breaks usb based ethernet device...


To generate a diff of this commit:
cvs rdiff -u -r1.81.4.2 -r1.81.4.3 src/sys/external/bsd/dwc2/dwc2.c
cvs rdiff -u -r1.14 -r1.14.2.1 src/sys/external/bsd/dwc2/dist/dwc2_core.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.