Page MenuHomeFreeBSD

mii_physubr: Add support for limiting PHY max speed
ClosedPublic

Authored by kd on Oct 29 2021, 12:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 12 2024, 9:53 PM
Unknown Object (File)
Feb 12 2024, 9:53 PM
Unknown Object (File)
Feb 12 2024, 9:53 PM
Unknown Object (File)
Feb 12 2024, 9:40 PM
Unknown Object (File)
Jan 16 2024, 7:31 AM
Unknown Object (File)
Jan 12 2024, 11:29 PM
Unknown Object (File)
Dec 16 2023, 7:37 AM
Unknown Object (File)
Dec 11 2023, 1:42 AM
Subscribers

Details

Summary

In some cases we might want to limit the max speed advertised below of what the PHY is capable of.
This is usually the case when we connect 1G capable PHY to 100M MAC, or when some exotic physical connection is used.
Add a new mii_maxspeed field to mii_softc and parse it in mii_phy_dev_attach.
Speed limit is normally located in DT.
The property is already parsed in mii_fdt.c, but its value still has to be passed by the PHY driver.

Diff Detail

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

Event Timeline

kd requested review of this revision.Oct 29 2021, 12:31 PM
kd created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Nov 24 2021, 6:42 AM
This revision was automatically updated to reflect the committed changes.