1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

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.
This commit is contained in:
Bill Paul 2003-08-10 01:32:16 +00:00
parent 1f80683394
commit ca3f4fd0a9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118710

View File

@ -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);