Page MenuHomeFreeBSD

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

Authored by manu on Nov 15 2022, 12:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 17 2024, 5:07 AM
Unknown Object (File)
Mar 17 2024, 5:07 AM
Unknown Object (File)
Mar 17 2024, 5:07 AM
Unknown Object (File)
Mar 14 2024, 12:04 PM
Unknown Object (File)
Feb 4 2024, 2:44 PM
Unknown Object (File)
Jan 12 2024, 3:06 AM
Unknown Object (File)
Dec 23 2023, 12:27 AM
Unknown Object (File)
Nov 14 2023, 9:41 PM
Subscribers

Details

Summary

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.

Fixed: 1331c0f44b6a ("Add support for RockChip RK356X to DWC3 driver.")
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Nov 15 2022, 12:59 PM
andrew added inline comments.
sys/dev/usb/controller/dwc3.c
462

What revision is 0x290a?

sys/dev/usb/controller/dwc3.h
113

We should clean the other macros that take an argument to use ((x) ...) at some stage.

sys/dev/usb/controller/dwc3.c
462

It's 0x290a :)
There is no other info that the revision field in the ID register.

sys/dev/usb/controller/dwc3.h
113

I'll do that in a later commit

This revision is now accepted and ready to land.Nov 16 2022, 9:51 AM