Page MenuHomeFreeBSD

dwc3: improve debugging
ClosedPublic

Authored by bz on Jul 2 2022, 9:15 PM.
Tags
None
Referenced Files
F107199123: D35700.diff
Sat, Jan 11, 1:37 PM
Unknown Object (File)
Tue, Dec 31, 2:12 PM
Unknown Object (File)
Fri, Dec 27, 3:26 PM
Unknown Object (File)
Dec 9 2024, 12:37 PM
Unknown Object (File)
Dec 5 2024, 5:34 PM
Unknown Object (File)
Dec 5 2024, 2:39 AM
Unknown Object (File)
Nov 14 2024, 12:32 PM
Unknown Object (File)
Nov 13 2024, 7:15 PM
Subscribers

Details

Summary

Rather than hiding behind #if 0, hide the debugging behind DWC3_DEBUG
so it can be turned on with a single define. Require bootverbose
to print anything so we can still avoid spamming the console if DWC3_DEBUG
is on.
Harmonize the format string in snsp_dwc3_dump_regs() to always print the
full register and also print the XHCI quirks.
Call snsp_dwc3_dump_regs() twice, before and after generic XHCI attachment
and initialisation as this may have an effect on the confirgumation state.

MFC after: 2 weeks
Obtained from: an old debug patch

Test Plan

Extracted from D35484 as requested by @mw.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46234
Build 43123: arc lint + arc unit