mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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>
This commit is contained in:
parent
4ff291ebe8
commit
d6b692835e
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue