git: 2fc58102426e - main - e6000/fdt: Ignore disabled switch ports
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Apr 2026 22:39:53 UTC
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");