Page MenuHomeFreeBSD

dwc3: improve debugging
ClosedPublic

Authored by bz on Jul 2 2022, 9:15 PM.
Tags
None
Referenced Files
F112530302: D35700.diff
Wed, Mar 19, 10:15 AM
Unknown Object (File)
Sun, Mar 16, 6:30 PM
Unknown Object (File)
Tue, Feb 25, 4:09 PM
Unknown Object (File)
Mon, Feb 24, 12:56 PM
Unknown Object (File)
Sat, Feb 22, 2:27 PM
Unknown Object (File)
Sat, Feb 22, 1:28 PM
Unknown Object (File)
Feb 15 2025, 8:35 PM
Unknown Object (File)
Jan 14 2025, 12:58 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable