diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-12-03 16:12:23 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-12-03 16:12:23 +0000 |
commit | a1b900700c3e8afae1bf0eb74a5dbf5f1b917cce (patch) | |
tree | 7ef8fe00b23b9ed5041fe26a4e7354229d4a727e /sys/dev/pci | |
parent | b0be393953f3dcced2f4b9174eb72a53aa991673 (diff) |
Set sis_stopped=1 early on attach and reset it later in sis_init().
With mickey's help.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_sis.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 9b301914c9e..66072776164 100644 --- a/sys/dev/pci/if_sis.c +++ b/sys/dev/pci/if_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sis.c,v 1.74 2006/10/18 20:00:21 brad Exp $ */ +/* $OpenBSD: if_sis.c,v 1.75 2006/12/03 16:12:22 grange Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -899,6 +899,8 @@ sis_attach(struct device *parent, struct device *self, void *aux) struct ifnet *ifp; bus_size_t size; + sc->sis_stopped = 1; + /* * Handle power management nonsense. */ @@ -1650,7 +1652,6 @@ sis_init(void *xsc) * Cancel pending I/O and free all RX/TX buffers. */ sis_stop(sc); - sc->sis_stopped = 0; #if NS_IHR_DELAY > 0 /* Configure interrupt holdoff register. */ @@ -1826,6 +1827,7 @@ sis_init(void *xsc) mii_mediachg(mii); #endif + sc->sis_stopped = 0; ifp->if_flags |= IFF_RUNNING; ifp->if_flags &= ~IFF_OACTIVE; |