summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/pci/if_sis.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index 5a5c0b8..e74cfa0 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;
OpenPOWER on IntegriCloud