diff options
author | wpaul <wpaul@FreeBSD.org> | 2000-06-05 19:37:15 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2000-06-05 19:37:15 +0000 |
commit | c3d31e9304323cc684b2d8c0c6cdb4b9240e5830 (patch) | |
tree | 21305565c255e20114c74722dc410f51c4d1e982 /sys/dev/mii | |
parent | 5051e56f813eef50c686459b47df5a21d98ae6de (diff) | |
download | FreeBSD-src-c3d31e9304323cc684b2d8c0c6cdb4b9240e5830.zip FreeBSD-src-c3d31e9304323cc684b2d8c0c6cdb4b9240e5830.tar.gz |
Don't bother checking the link state in dcphy_status() if the interface
isn't up.
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/dcphy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/mii/dcphy.c b/sys/dev/mii/dcphy.c index f8a3f47..73e241e 100644 --- a/sys/dev/mii/dcphy.c +++ b/sys/dev/mii/dcphy.c @@ -367,6 +367,9 @@ dcphy_status(sc) mii->mii_media_status = IFM_AVALID; mii->mii_media_active = IFM_ETHER; + if ((mii->mii_ifp->if_flags & IFF_UP) == 0) + return; + reg = CSR_READ_4(dc_sc, DC_10BTSTAT) & (DC_TSTAT_LS10|DC_TSTAT_LS100); |