Date: Thu, 16 Apr 2026 22:39:53 +0000 From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2fc58102426e - main - e6000/fdt: Ignore disabled switch ports Message-ID: <69e16539.372af.384f765d@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=2fc58102426ebb3a662675da2600591922a21082 commit 2fc58102426ebb3a662675da2600591922a21082 Author: Justin Hibbits <jhibbits@FreeBSD.org> AuthorDate: 2026-04-16 22:35:45 +0000 Commit: Justin Hibbits <jhibbits@FreeBSD.org> CommitDate: 2026-04-16 22:35:45 +0000 e6000/fdt: Ignore disabled switch ports Instead of trying to parse a bogus node, just skip it if marked disabled. --- sys/dev/etherswitch/e6000sw/e6000sw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c index 771e64868740..248a13952d35 100644 --- a/sys/dev/etherswitch/e6000sw/e6000sw.c +++ b/sys/dev/etherswitch/e6000sw/e6000sw.c @@ -575,6 +575,8 @@ e6000sw_attach(device_t dev) } for (child = OF_child(ports); child != 0; child = OF_peer(child)) { + if (!ofw_bus_node_status_okay(child)) + continue; err = e6000sw_parse_child_fdt(sc, child, &port); if (err != 0) { device_printf(sc->dev, "failed to parse DTS\n");home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e16539.372af.384f765d>
