mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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:
parent
1d6431f625
commit
9ed5b61bdd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59235
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user