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)
Thu, Jan 23, 9:00 PM
Unknown Object (File)
Thu, Jan 23, 5:01 PM
Unknown Object (File)
Wed, Jan 22, 5:24 PM
Unknown Object (File)
Thu, Jan 16, 9:05 AM
Unknown Object (File)
Thu, Jan 16, 6:12 AM
Unknown Object (File)
Sat, Jan 11, 4:56 AM
Unknown Object (File)
Dec 6 2024, 12:44 AM
Unknown Object (File)
Nov 21 2024, 2:23 PM
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