diff options
| author | Justin Hibbits <jhibbits@FreeBSD.org> | 2026-04-16 22:35:45 +0000 |
|---|---|---|
| committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2026-04-16 22:35:45 +0000 |
| commit | 2fc58102426ebb3a662675da2600591922a21082 (patch) | |
| tree | 8721dcbdbaf0c6347e84fc26051de9de7e0e2916 | |
| parent | 680e6e30c02019c2a18c2ecfef3723b9adaa9ce5 (diff) | |
e6000/fdt: Ignore disabled switch ports
Instead of trying to parse a bogus node, just skip it if marked
disabled.
| -rw-r--r-- | sys/dev/etherswitch/e6000sw/e6000sw.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |
