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.

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

(cherry picked from commit 09cdf4878c621be4cd229fa88cdccdcdc8c101f7)
(cherry picked from commit ec32fc2af52530e49d8a522ae29bf20b2e57603b)

Details

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