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)
Tue, Apr 22, 7:48 PM
Unknown Object (File)
Sun, Apr 20, 9:30 AM
Unknown Object (File)
Wed, Apr 16, 11:11 AM
Unknown Object (File)
Mon, Apr 14, 11:42 PM
Unknown Object (File)
Mon, Apr 14, 11:25 PM
Unknown Object (File)
Mon, Apr 14, 8:07 PM
Unknown Object (File)
Mon, Apr 14, 3:35 PM
Unknown Object (File)
Sun, Apr 13, 2:56 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