mii_fdt: Search for the "ethernet-ports" subnode

This is a more common name for the parent of the port nodes.

PR:		280770
MFC after:	2 weeks
Reported by:	Mike Belanger <mibelanger@qnx.com>

(cherry picked from commit d6b692835e52d85441dfdd20a01c12e17cb50914)
This commit is contained in:
Mark Johnston 2024-11-19 21:05:19 +00:00
parent 85c50de4db
commit a5c39c4448

View file

@ -115,6 +115,8 @@ mii_fdt_lookup_phy(phandle_t node, int addr)
* Since we have multiple candidates select one based on PHY address.
*/
ports = ofw_bus_find_child(node, "ports");
if (ports <= 0)
ports = ofw_bus_find_child(node, "ethernet-ports");
if (ports <= 0)
return (-1);