diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-09-28 01:13:33 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-09-28 01:13:33 +0000 |
commit | 92723620735c0ac445695206c5ea3f2ad746d082 (patch) | |
tree | 272dad7f9750b5bcf84cf4abff0e7f3249084110 | |
parent | df92dc15996d4d7a43e2b1928bb4bf802dd7015e (diff) |
mii_phy_tick() already checks for autonegotiation.
-rw-r--r-- | sys/dev/mii/exphy.c | 8 | ||||
-rw-r--r-- | sys/dev/mii/ukphy.c | 8 |
2 files changed, 2 insertions, 14 deletions
diff --git a/sys/dev/mii/exphy.c b/sys/dev/mii/exphy.c index 02390c9b634..541c5b17892 100644 --- a/sys/dev/mii/exphy.c +++ b/sys/dev/mii/exphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exphy.c,v 1.15 2004/09/27 18:25:48 brad Exp $ */ +/* $OpenBSD: exphy.c,v 1.16 2004/09/28 01:13:32 brad Exp $ */ /* $NetBSD: exphy.c,v 1.23 2000/02/02 23:34:56 thorpej Exp $ */ /*- @@ -204,12 +204,6 @@ exphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) break; case MII_TICK: - /* - * Only used for autonegotiation. - */ - if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO) - return (0); - if (mii_phy_tick(sc) == EJUSTRETURN) return (0); diff --git a/sys/dev/mii/ukphy.c b/sys/dev/mii/ukphy.c index 7219126eec8..3eb1f67a919 100644 --- a/sys/dev/mii/ukphy.c +++ b/sys/dev/mii/ukphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukphy.c,v 1.13 2004/09/27 18:25:48 brad Exp $ */ +/* $OpenBSD: ukphy.c,v 1.14 2004/09/28 01:13:32 brad Exp $ */ /* $NetBSD: ukphy.c,v 1.9 2000/02/02 23:34:57 thorpej Exp $ */ /*- @@ -193,12 +193,6 @@ ukphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) if (IFM_INST(ife->ifm_media) != sc->mii_inst) return (0); - /* - * Only used for autonegotiation. - */ - if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO) - return (0); - if (mii_phy_tick(sc) == EJUSTRETURN) return (0); break; |