]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
usb/dwc3: Only force USB2 based on the PHY register and IP version
authorEmmanuel Vadot <manu@FreeBSD.org>
Tue, 15 Nov 2022 12:54:49 +0000 (13:54 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Wed, 16 Nov 2022 10:58:32 +0000 (11:58 +0100)
commitd47f5f2886f082281ae6f97dd5fe9440ad31e6d5
tree4d5307753171a020ce2f0f67a1b4aad482be0ae4
parent0e87f58bd7e566d2b7d50cf0ab636e745af591fc
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
sys/dev/usb/controller/dwc3.c
sys/dev/usb/controller/dwc3.h