Page MenuHomeFreeBSD

dwc3: improve debugging
ClosedPublic

Authored by bz on Jul 2 2022, 9:15 PM.
Tags
None
Referenced Files
F138249684: D35700.diff
Sun, Nov 30, 7:49 AM
Unknown Object (File)
Sat, Nov 22, 2:16 PM
Unknown Object (File)
Sun, Nov 16, 12:30 AM
Unknown Object (File)
Thu, Nov 13, 4:56 AM
Unknown Object (File)
Sun, Nov 9, 10:24 AM
Unknown Object (File)
Mon, Nov 3, 11:20 PM
Unknown Object (File)
Mon, Nov 3, 12:33 AM
Unknown Object (File)
Sun, Nov 2, 2:02 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable