Module Name: src Committed By: phx Date: Sat Mar 12 16:52:05 UTC 2011
Modified Files: src/sys/dev/pci: if_stge.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/dev/pci/if_stge.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_stge.c diff -u src/sys/dev/pci/if_stge.c:1.52 src/sys/dev/pci/if_stge.c:1.53 --- src/sys/dev/pci/if_stge.c:1.52 Tue Mar 8 19:06:58 2011 +++ src/sys/dev/pci/if_stge.c Sat Mar 12 16:52:05 2011 @@ -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; }