summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge/if_bge.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2003-08-10 01:32:16 +0000
committerwpaul <wpaul@FreeBSD.org>2003-08-10 01:32:16 +0000
commit73cc57c6c7f278b0455bcb46251ff7299f5afaf1 (patch)
tree0eaf74f72cb853eeb16cc7414dc1baf0197010e1 /sys/dev/bge/if_bge.c
parent72617c8745f63978d98e25a42b16ee4f4dd5c71a (diff)
downloadFreeBSD-src-73cc57c6c7f278b0455bcb46251ff7299f5afaf1.zip
FreeBSD-src-73cc57c6c7f278b0455bcb46251ff7299f5afaf1.tar.gz
Silence unwanted 'gigabit link up' messages: do not treat the
BGE_MACSTAT_MI_COMPLETE bit in the MAC status register as a link change indicator. We turn this bit on now because some of the newer chips need it, but it usually just means that reading/writing an MII/GMII register has completed, not that a link change has occured.
Diffstat (limited to 'sys/dev/bge/if_bge.c')
-rw-r--r--sys/dev/bge/if_bge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index 6f781e8..d781779 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -2845,7 +2845,8 @@ bge_intr(xsc)
* effect on copper NICs.)
*/
status = CSR_READ_4(sc, BGE_MAC_STS);
- if (!(status & BGE_MACSTAT_PORT_DECODE_ERROR)) {
+ if (!(status & (BGE_MACSTAT_PORT_DECODE_ERROR|
+ BGE_MACSTAT_MI_COMPLETE))) {
sc->bge_link = 0;
untimeout(bge_tick, sc, sc->bge_stat_ch);
bge_tick(sc);
OpenPOWER on IntegriCloud