Page MenuHomeFreeBSD

mii_physubr: Add support for limiting PHY max speed
ClosedPublic

Authored by mindal_semihalf.com on Oct 29 2021, 12:31 PM.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mindal_semihalf.com 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.