From ca3f4fd0a9a40336cc383b4ec3f40ff215d57edc Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sun, 10 Aug 2003 01:32:16 +0000 Subject: [PATCH] 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(-) diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 6f781e81e651..d78177986c77 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);