Page MenuHomeFreeBSD

mii_fdt: Add support for switch PHY node lookup
ClosedPublic

Authored by kd on Oct 27 2021, 9:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 10, 11:28 AM
Unknown Object (File)
Thu, Apr 9, 6:18 PM
Unknown Object (File)
Sat, Apr 4, 8:16 AM
Unknown Object (File)
Mar 8 2026, 4:12 PM
Unknown Object (File)
Dec 30 2025, 5:22 AM
Unknown Object (File)
Dec 29 2025, 3:44 PM
Unknown Object (File)
Dec 27 2025, 4:57 PM
Unknown Object (File)
Dec 27 2025, 3:17 AM
Subscribers

Details

Summary

Previously we would only search for a PHY xref in node of the miibus parent.
That didn't work very well with switches.
Fix that by searching through "ports" subnode, checking if any of its children have a valid PHY xref.
Since switches tend to have multiple ports we also have multiple candidates.
Use the PHY address read from mii_attach_args to find the right one.

Diff Detail

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