Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic only powerdown on a suspend. do not powerdown o...
details: https://anonhg.NetBSD.org/src/rev/578403f2ddb3
branches: trunk
changeset: 533804:578403f2ddb3
user: chuck <chuck%NetBSD.org@localhost>
date: Tue Jul 09 20:19:57 2002 +0000
description:
only powerdown on a suspend. do not powerdown on a standby (PR#17537).
diffstat:
sys/dev/ic/tulip.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r a7eac24acf5e -r 578403f2ddb3 sys/dev/ic/tulip.c
--- a/sys/dev/ic/tulip.c Tue Jul 09 20:06:35 2002 +0000
+++ b/sys/dev/ic/tulip.c Tue Jul 09 20:19:57 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tulip.c,v 1.116 2002/07/08 18:43:54 mycroft Exp $ */
+/* $NetBSD: tulip.c,v 1.117 2002/07/09 20:19:57 chuck Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tulip.c,v 1.116 2002/07/08 18:43:54 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tulip.c,v 1.117 2002/07/09 20:19:57 chuck Exp $");
#include "bpfilter.h"
@@ -1962,8 +1962,10 @@
s = splnet();
switch (why) {
+ case PWR_STANDBY:
+ /* do nothing! */
+ break;
case PWR_SUSPEND:
- case PWR_STANDBY:
tlp_stop(ifp, 0);
if (sc->sc_power != NULL)
(*sc->sc_power)(sc, why);
Home |
Main Index |
Thread Index |
Old Index