diff options
| author | Marcin Wojtas <mw@FreeBSD.org> | 2018-04-10 08:35:43 +0000 |
|---|---|---|
| committer | Marcin Wojtas <mw@FreeBSD.org> | 2018-04-10 08:35:43 +0000 |
| commit | fb4478a33619b2d254ee73c91dfdbf2b515f5607 (patch) | |
| tree | d738629f444128b663fc6b21ab52dca3e1ae0447 /sys/dev/etherswitch/e6000sw | |
| parent | 2caa5afc9c9c621de82add97357820162ca73e6b (diff) | |
Notes
Diffstat (limited to 'sys/dev/etherswitch/e6000sw')
| -rw-r--r-- | sys/dev/etherswitch/e6000sw/e6000sw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c index 931d6ad33040..06c20533a31a 100644 --- a/sys/dev/etherswitch/e6000sw/e6000sw.c +++ b/sys/dev/etherswitch/e6000sw/e6000sw.c @@ -213,7 +213,9 @@ e6000sw_probe(device_t dev) if (OF_getencprop(sc->node, "reg", &sc->sw_addr, sizeof(sc->sw_addr)) < 0) return (ENXIO); - if (sc->sw_addr != 0 && (sc->sw_addr % 2) == 0) + + if (!OF_hasprop(sc->node, "single-chip-addressing") && + (sc->sw_addr != 0 && (sc->sw_addr % 2) == 0)) sc->multi_chip = true; /* |
