diff options
author | John Levon <john.levon@joyent.com> | 2018-12-18 13:23:41 +0000 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-03-16 11:49:13 +0000 |
commit | 945e3b4bc345679cad92f0a896670030a411c8f8 (patch) | |
tree | 95dc9e1900c8c71573ec6e2ec737dbd107453bf1 | |
parent | 618d207ffd5dca94c4a4715afd5a15b0025530ea (diff) | |
download | illumos-joyent-945e3b4bc345679cad92f0a896670030a411c8f8.tar.gz |
10089 phy_check() is bitwise, should be streetwise
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/uts/common/io/mii/mii.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/mii/mii.c b/usr/src/uts/common/io/mii/mii.c index b024899783..c2d8e5ad51 100644 --- a/usr/src/uts/common/io/mii/mii.c +++ b/usr/src/uts/common/io/mii/mii.c @@ -24,6 +24,10 @@ */ /* + * Copyright (c) 2018, Joyent, Inc. + */ + +/* * mii - MII/PHY support for MAC drivers * * Utility module to provide a consistent interface to a MAC driver accross @@ -1519,7 +1523,7 @@ debounce: * gigabit modes cannot use legacy parallel detection. */ - if ((ph->phy_type == XCVR_1000T) & + if ((ph->phy_type == XCVR_1000T) && (anexp & MII_AN_EXP_LPCANAN)) { /* check for gige */ |