diff options
author | phk <phk@FreeBSD.org> | 2002-05-04 11:00:30 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-05-04 11:00:30 +0000 |
commit | 2bdcfd0c1cef53f79a0f3a9c89de2b9353a04cd1 (patch) | |
tree | 10060b81297899944fcdaab5c317442881b2dc23 /sys/dev/mii/mlphy.c | |
parent | 86e4ff351cfc30a5d4252b6e45c3e240773f3114 (diff) | |
download | FreeBSD-src-2bdcfd0c1cef53f79a0f3a9c89de2b9353a04cd1.zip FreeBSD-src-2bdcfd0c1cef53f79a0f3a9c89de2b9353a04cd1.tar.gz |
Clean up mii/phy drivers: Remove the MIIF_DOINGAUTO which doesn't really
do anything at the end of the day except bloat the drivers which has
copy&pasted it.
Diffstat (limited to 'sys/dev/mii/mlphy.c')
-rw-r--r-- | sys/dev/mii/mlphy.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/mii/mlphy.c b/sys/dev/mii/mlphy.c index 44ab59d..d600455 100644 --- a/sys/dev/mii/mlphy.c +++ b/sys/dev/mii/mlphy.c @@ -238,7 +238,7 @@ mlphy_service(xsc, mii, cmd) mii_phy_reset(other); PHY_WRITE(other, MII_BMCR, BMCR_ISO); } - (void) mii_phy_auto(sc, 1); + (void) mii_phy_auto(sc); msc->ml_linked = 0; return(0); break; @@ -346,9 +346,8 @@ mlphy_service(xsc, mii, cmd) mii_phy_reset(other); PHY_WRITE(other, MII_BMCR, BMCR_ISO); } - if (mii_phy_auto(sc, 0) == EJUSTRETURN) - return(0); - break; + mii_phy_auto(sc); + return(0); } /* Update the media status. */ @@ -425,7 +424,7 @@ static void mlphy_status(sc) mlphy_reset(&msc->ml_mii); PHY_WRITE(&msc->ml_mii, MII_BMCR, BMCR_ISO); mii_phy_reset(other); - mii_phy_auto(other, 1); + mii_phy_auto(other); } return; |