Change && to || in probe routine so that the mlphy driver doesn't

incorrectly attach itself to ThunderLAN adapters which happen to have
a PHY who's model number happens out to be 0.

Problem reported by: Peter L. Thomas <Pete@painless-computing.com>
This commit is contained in:
wpaul 2000-04-14 15:31:48 +00:00
parent b3f8b52065
commit 51c4891813

View File

@ -113,7 +113,7 @@ static int mlphy_probe(dev)
/*
* Micro Linear PHY reports oui == 0 model == 0
*/
if (MII_OUI(ma->mii_id1, ma->mii_id2) != 0 &&
if (MII_OUI(ma->mii_id1, ma->mii_id2) != 0 ||
MII_MODEL(ma->mii_id2) != 0)
return (ENXIO);