From 73cc57c6c7f278b0455bcb46251ff7299f5afaf1 Mon Sep 17 00:00:00 2001 From: wpaul Date: Sun, 10 Aug 2003 01:32:16 +0000 Subject: 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. --- sys/dev/bge/if_bge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/bge') 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); -- cgit v1.1