summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2002-08-16 23:19:16 +0000
committerambrisko <ambrisko@FreeBSD.org>2002-08-16 23:19:16 +0000
commitb9b7fbb25dccf66f7e085debd1b2960eb761070d (patch)
treee9ec37da7a97dcd5bf7837801adc15772e37e1d7 /sys/dev
parentd093261d0a46c2e6bd8a68396c4be0858121e955 (diff)
downloadFreeBSD-src-b9b7fbb25dccf66f7e085debd1b2960eb761070d.zip
FreeBSD-src-b9b7fbb25dccf66f7e085debd1b2960eb761070d.tar.gz
Revert change to detect multiply PHYs in mii code. There might be cases
when this is needed. Work around bogus second PHY in the DFE-580 card via a change in the if_ste.c driver. Suggested by: jdp Reviewed by: jdp MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/mii/mii.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c
index aad3573..9a63276 100644
--- a/sys/dev/mii/mii.c
+++ b/sys/dev/mii/mii.c
@@ -110,17 +110,14 @@ int miibus_probe(dev)
{
struct mii_attach_args ma, *args;
struct mii_data *mii;
- device_t child = NULL, parent, *children;
- int bmsr, capmask = 0xFFFFFFFF, nchildren;
+ device_t child = NULL, parent;
+ int bmsr, capmask = 0xFFFFFFFF;
mii = device_get_softc(dev);
parent = device_get_parent(dev);
LIST_INIT(&mii->mii_phys);
for (ma.mii_phyno = 0; ma.mii_phyno < MII_NPHY; ma.mii_phyno++) {
- device_get_children(dev, &children, &nchildren);
- if (nchildren)
- break;
/*
* Check to see if there is a PHY at this address. Note,
* many braindead PHYs report 0/0 in their ID registers,
OpenPOWER on IntegriCloud