summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2007-10-29 21:11:55 +0000
committermarius <marius@FreeBSD.org>2007-10-29 21:11:55 +0000
commitda852afdbd7b15bb6bd7271b9693309e888550e9 (patch)
tree5572aa63e39c0719e6e8554cefa15a532b38233c /sys/dev/mii
parentb1a850ab26293714932e3032d1e697b794db3a8c (diff)
downloadFreeBSD-src-da852afdbd7b15bb6bd7271b9693309e888550e9.zip
FreeBSD-src-da852afdbd7b15bb6bd7271b9693309e888550e9.tar.gz
- Remove MIIF_NOISOLATE; there's generally no reason to let gentbi(4)
set this flag and it was more or less just copied and pasted from another FreeBSD driver while porting this driver from NetBSD, whose gentbi(4) doesn't set MIIF_NOISOLATE either. - Fix spelling in a comment. OK'ed by: yongari MFC after: 3 months
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/gentbi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/mii/gentbi.c b/sys/dev/mii/gentbi.c
index 5536445..10e780a 100644
--- a/sys/dev/mii/gentbi.c
+++ b/sys/dev/mii/gentbi.c
@@ -182,7 +182,6 @@ gentbi_attach(device_t dev)
sc->mii_phy = ma->mii_phyno;
sc->mii_service = gentbi_service;
sc->mii_pdata = mii;
- sc->mii_flags |= MIIF_NOISOLATE;
mii->mii_instance++;
@@ -287,7 +286,7 @@ gentbi_status(struct mii_softc *sc)
if (bmcr & BMCR_AUTOEN) {
/*
- * The media status bits are only valid of autonegotiation
+ * The media status bits are only valid if autonegotiation
* has completed (or it's disabled).
*/
if ((bmsr & BMSR_ACOMP) == 0) {
OpenPOWER on IntegriCloud