diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2001-12-07 00:58:37 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2001-12-07 00:58:37 +0000 |
| commit | 341538b884e522b5cfcb02e58e457f614071bc35 (patch) | |
| tree | 7c4ba06e3e83b8a8d1f7269ee63e4d52ebc23cc1 /sys | |
| parent | 3b3ec2004ad07e8d74a58d497cd5c78e4aa8a108 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/pci/if_sis.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c index 5a5c0b844dd6..e74cfa09720e 100644 --- a/sys/pci/if_sis.c +++ b/sys/pci/if_sis.c @@ -1908,6 +1908,9 @@ static void sis_stop(sc) ifp->if_timer = 0; untimeout(sis_tick, sc, sc->sis_stat_ch); + + ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); + CSR_WRITE_4(sc, SIS_IER, 0); CSR_WRITE_4(sc, SIS_IMR, 0); SIS_SETBIT(sc, SIS_CSR, SIS_CSR_TX_DISABLE|SIS_CSR_RX_DISABLE); @@ -1950,8 +1953,6 @@ static void sis_stop(sc) bzero(sc->sis_ldata.sis_tx_list, sizeof(sc->sis_ldata.sis_tx_list)); - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); - SIS_UNLOCK(sc); return; |
