HomeFreeBSD

dwc3: add more quirks and checks

Description

dwc3: add more quirks and checks

Rather than just printing the Global SNPS ID Register store it as well
so we can do a version check later.
In addition, for debugging purposes, read the Global Hardware Parameters
Registers and print them.

Based on the snpsid disable an XHCI feature using a quirk prepared
in 447c418da03454a2a00bc115a69c62055a6d5272.
Add the "snps,dis_u3_susphy_quirk" quirk and handle Suspend USB3.0 SS PHY
after power-on-reset/during core initialization (suggested to be cleared)
based on the DWC3_GHWPARAMS0 register.

MFC after: 2 weeks
Obtained from: an old debugging patch
Reviewed by: mw (earlier version), mmel
Differential Revision: https://reviews.freebsd.org/D35699

Details

Provenance
bzAuthored on Jul 2 2022, 8:56 PM
Reviewer
mw
Differential Revision
D35699: dwc3: add more quirks and checks
Parents
rGcec0a5ec6b10: dwc3: uncondinationally enable Host IN Auto Retry
Branches
Unknown
Tags
Unknown