Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2024 02:17:08 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a5c39c444891 - stable/14 - mii_fdt: Search for the "ethernet-ports" subnode
Message-ID:  <202412030217.4B32H8q0070551@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=a5c39c4448919d227fc671f7c229daab92c1ceff

commit a5c39c4448919d227fc671f7c229daab92c1ceff
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-11-19 21:05:19 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-12-03 01:01:59 +0000

    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)
---
 sys/dev/mii/mii_fdt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/mii/mii_fdt.c b/sys/dev/mii/mii_fdt.c
index 240312114cf2..2254af162a34 100644
--- a/sys/dev/mii/mii_fdt.c
+++ b/sys/dev/mii/mii_fdt.c
@@ -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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412030217.4B32H8q0070551>