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
This commit is contained in:
Doug Ambrisko 2002-08-16 23:19:16 +00:00
parent 39c6a8beeb
commit 74495bcdab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102000
2 changed files with 7 additions and 5 deletions

View file

@ -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,

View file

@ -380,6 +380,11 @@ static int ste_miibus_readreg(dev, phy, reg)
sc = device_get_softc(dev);
if (pci_get_vendor(dev) == DL_VENDORID &&
pci_get_device(dev) == DL_DEVICEID_550TX &&
phy != 0)
return (0);
bzero((char *)&frame, sizeof(frame));
frame.mii_phyaddr = phy;