diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2008-11-24 21:26:26 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2008-11-24 21:26:26 +0000 |
| commit | 30a4dc507cb6b3efbf52fb64b75e11c29042e6d7 (patch) | |
| tree | 16250fa94ca70411453aa2dd7aace121efe65c3c /sys | |
| parent | 919b4f203008fb36c134813b951c9d427bf228c9 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/pci/if_dc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index 82e907938759..f444cedf0d80 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/if_dc.c @@ -2916,12 +2916,8 @@ dc_tick(void *xsc) if (sc->dc_link == 0) mii_tick(mii); } else { - /* - * For NICs which never report DC_RXSTATE_WAIT, we - * have to bite the bullet... - */ - if ((DC_HAS_BROKEN_RXSTATE(sc) || (CSR_READ_4(sc, - DC_ISR) & DC_ISR_RX_STATE) == DC_RXSTATE_WAIT) && + r = CSR_READ_4(sc, DC_ISR); + if ((r & DC_ISR_RX_STATE) == DC_RXSTATE_WAIT && sc->dc_cdata.dc_tx_cnt == 0) { mii_tick(mii); if (!(mii->mii_media_status & IFM_ACTIVE)) |
