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 ex_shutdown(), call ex_enable() to make sure t...
details: https://anonhg.NetBSD.org/src/rev/05bba9074db7
branches: trunk
changeset: 533475:05bba9074db7
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Jul 01 16:16:37 2002 +0000
description:
In ex_shutdown(), call ex_enable() to make sure the interface is
powered up and the PCI configuration registers restored. If we
don't do this, the firmware on some machines gets REALLY confused.
diffstat:
sys/dev/ic/elinkxl.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 22946bb7863d -r 05bba9074db7 sys/dev/ic/elinkxl.c
--- a/sys/dev/ic/elinkxl.c Mon Jul 01 16:15:35 2002 +0000
+++ b/sys/dev/ic/elinkxl.c Mon Jul 01 16:16:37 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elinkxl.c,v 1.64 2002/06/20 23:47:25 itojun Exp $ */
+/* $NetBSD: elinkxl.c,v 1.65 2002/07/01 16:16:37 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.64 2002/06/20 23:47:25 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.65 2002/07/01 16:16:37 thorpej Exp $");
#include "bpfilter.h"
#include "rnd.h"
@@ -1635,6 +1635,11 @@
struct ex_softc *sc = arg;
ex_stop(&sc->sc_ethercom.ec_if, 1);
+ /*
+ * Make sure the interface is powered up when we reboot,
+ * otherwise firmware on some systems gets really confused.
+ */
+ (void) ex_enable(sc);
}
/*
Home |
Main Index |
Thread Index |
Old Index