summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge/if_bge.c
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2012-10-24 05:54:17 +0000
committeryongari <yongari@FreeBSD.org>2012-10-24 05:54:17 +0000
commit85598902ff415113a7ff1d3febd2609303fc043c (patch)
treea1e7e224afb40527e1dc7ad274b48b6ea549d99a /sys/dev/bge/if_bge.c
parent824e44e0649e1c25854ebf6c86786c36d4090386 (diff)
downloadFreeBSD-src-85598902ff415113a7ff1d3febd2609303fc043c.zip
FreeBSD-src-85598902ff415113a7ff1d3febd2609303fc043c.tar.gz
For fast ethernet controllers, Ethernet@WireSpeed is not defined so
explicitly set BGE_PHY_NO_WIRESPEED flag.
Diffstat (limited to 'sys/dev/bge/if_bge.c')
-rw-r--r--sys/dev/bge/if_bge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index 118f3d4..14d4547 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -3460,6 +3460,7 @@ bge_attach(device_t dev)
sc->bge_asicrev == BGE_ASICREV_BCM5906) {
/* These chips are 10/100 only. */
capmask &= ~BMSR_EXTSTAT;
+ sc->bge_phy_flags |= BGE_PHY_NO_WIRESPEED;
}
/*
@@ -3757,14 +3758,13 @@ bge_attach(device_t dev)
}
/*
- * Don't enable Ethernet@WireSpeed for the 5700, 5906, or the
+ * Don't enable Ethernet@WireSpeed for the 5700 or the
* 5705 A0 and A1 chips.
*/
if (sc->bge_asicrev == BGE_ASICREV_BCM5700 ||
(sc->bge_asicrev == BGE_ASICREV_BCM5705 &&
(sc->bge_chipid != BGE_CHIPID_BCM5705_A0 &&
- sc->bge_chipid != BGE_CHIPID_BCM5705_A1)) ||
- sc->bge_asicrev == BGE_ASICREV_BCM5906)
+ sc->bge_chipid != BGE_CHIPID_BCM5705_A1)))
sc->bge_phy_flags |= BGE_PHY_NO_WIRESPEED;
if (sc->bge_flags & BGE_FLAG_TBI) {
OpenPOWER on IntegriCloud