Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci When shutting down the network interface it is n...



details:   https://anonhg.NetBSD.org/src/rev/f4deff273d03
branches:  trunk
changeset: 763197:f4deff273d03
user:      phx <phx%NetBSD.org@localhost>
date:      Sat Mar 12 16:52:05 2011 +0000

description:
When shutting down the network interface it is not enough to stop it. Some
boards also need to reset the chip, otherwise bad things can happen.

diffstat:

 sys/dev/pci/if_stge.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c033399cd83e -r f4deff273d03 sys/dev/pci/if_stge.c
--- a/sys/dev/pci/if_stge.c     Sat Mar 12 16:49:16 2011 +0000
+++ b/sys/dev/pci/if_stge.c     Sat Mar 12 16:52:05 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_stge.c,v 1.52 2011/03/08 19:06:58 phx Exp $ */
+/*     $NetBSD: if_stge.c,v 1.53 2011/03/12 16:52:05 phx Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.52 2011/03/08 19:06:58 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.53 2011/03/12 16:52:05 phx Exp $");
 
 
 #include <sys/param.h>
@@ -754,7 +754,7 @@
        struct ifnet *ifp = &sc->sc_ethercom.ec_if;
 
        stge_stop(ifp, 1);
-
+       stge_reset(sc);
        return true;
 }
 



Home | Main Index | Thread Index | Old Index