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
F131760737: D32690.diff
Fri, Oct 10, 11:11 PM
Unknown Object (File)
Sun, Sep 14, 10:00 PM
Unknown Object (File)
Sat, Sep 13, 11:02 PM
Unknown Object (File)
Sep 5 2025, 5:11 PM
Unknown Object (File)
Aug 12 2025, 1:55 PM
Unknown Object (File)
Aug 8 2025, 1:49 PM
Unknown Object (File)
Aug 6 2025, 12:31 PM
Unknown Object (File)
Aug 4 2025, 1:55 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

Lint
Lint Skipped
Unit
Tests Skipped