Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic In epshutdown(), do not attempt to disable the in...



details:   https://anonhg.NetBSD.org/src/rev/5da7624370c9
branches:  trunk
changeset: 572730:5da7624370c9
user:      briggs <briggs%NetBSD.org@localhost>
date:      Tue Jan 11 04:16:27 2005 +0000

description:
In epshutdown(), do not attempt to disable the interface when stopping it
because we're about to write to it again (with a global reset).  Disable
the interface explicitly after the reset is written.

diffstat:

 sys/dev/ic/elink3.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r a74138e9e444 -r 5da7624370c9 sys/dev/ic/elink3.c
--- a/sys/dev/ic/elink3.c       Tue Jan 11 03:45:17 2005 +0000
+++ b/sys/dev/ic/elink3.c       Tue Jan 11 04:16:27 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elink3.c,v 1.108 2004/10/30 18:08:36 thorpej Exp $     */
+/*     $NetBSD: elink3.c,v 1.109 2005/01/11 04:16:27 briggs Exp $      */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.108 2004/10/30 18:08:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.109 2005/01/11 04:16:27 briggs Exp $");
 
 #include "opt_inet.h"
 #include "opt_ns.h"
@@ -1853,8 +1853,9 @@
        int s = splnet(); 
 
        if (sc->enabled) {
-               epstop(&sc->sc_ethercom.ec_if, 1);
+               epstop(&sc->sc_ethercom.ec_if, 0);
                ep_reset_cmd(sc, ELINK_COMMAND, GLOBAL_RESET);
+               epdisable(sc);
                sc->enabled = 0;
        }
        splx(s);



Home | Main Index | Thread Index | Old Index