HomeFreeBSD

usb/dwc3: Only force USB2 based on the PHY register and IP version

Description

usb/dwc3: Only force USB2 based on the PHY register and IP version

We shouldn't force USB2 only based on if we have an external PHY.
The internal PHY register tell us what link speed we can acheive
and we need to force USB2 only if it cannot do USB3.
This is only available after revision 0x290A of the dwc3 IP.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D37394
Fixed: 1331c0f44b6a ("Add support for RockChip RK356X to DWC3 driver.")
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit d47f5f2886f082281ae6f97dd5fe9440ad31e6d5)

Details

Provenance
manuAuthored on Nov 15 2022, 12:54 PM
Reviewer
andrew
Differential Revision
D37394: usb/dwc3: Only force USB2 based on the PHY register and IP version
Parents
rG4a90c1df208e: linuxkpi: Move cpu_relax out of ifdef for x86
Branches
Unknown
Tags
Unknown