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)
Wed, Oct 30, 10:00 AM
Unknown Object (File)
Oct 2 2024, 7:22 PM
Unknown Object (File)
Oct 1 2024, 8:31 AM
Unknown Object (File)
Sep 24 2024, 3:52 AM
Unknown Object (File)
Sep 22 2024, 8:56 AM
Unknown Object (File)
Sep 21 2024, 6:47 PM
Unknown Object (File)
Sep 18 2024, 12:39 AM
Unknown Object (File)
Sep 17 2024, 12:57 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