Page MenuHomeFreeBSD

dwc3: improve debugging
ClosedPublic

Authored by bz on Jul 2 2022, 9:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 2, 8:46 AM
Unknown Object (File)
Tue, May 26, 4:49 AM
Unknown Object (File)
Fri, May 22, 6:56 AM
Unknown Object (File)
Wed, May 20, 7:50 PM
Unknown Object (File)
Mon, May 18, 1:10 AM
Unknown Object (File)
Sun, May 17, 3:48 AM
Unknown Object (File)
Tue, May 12, 1:37 AM
Unknown Object (File)
Tue, May 12, 1:37 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