Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Small changes to behaviour when disconnecting.
details: https://anonhg.NetBSD.org/src/rev/a2b3731ed9fb
branches: trunk
changeset: 517475:a2b3731ed9fb
user: augustss <augustss%NetBSD.org@localhost>
date: Tue Nov 13 07:57:22 2001 +0000
description:
Small changes to behaviour when disconnecting.
diffstat:
sys/dev/usb/if_aue.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r 9db8cf432d6a -r a2b3731ed9fb sys/dev/usb/if_aue.c
--- a/sys/dev/usb/if_aue.c Tue Nov 13 07:56:39 2001 +0000
+++ b/sys/dev/usb/if_aue.c Tue Nov 13 07:57:22 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aue.c,v 1.68 2001/11/13 06:24:53 lukem Exp $ */
+/* $NetBSD: if_aue.c,v 1.69 2001/11/13 07:57:22 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul%ee.columbia.edu@localhost>. All rights reserved.
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.68 2001/11/13 06:24:53 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.69 2001/11/13 07:57:22 augustss Exp $");
#if defined(__NetBSD__)
#include "opt_inet.h"
@@ -441,6 +441,13 @@
int i;
u_int16_t val;
+ if (sc->aue_dying) {
+#ifdef DIAGNOSTIC
+ printf("%s: dying\n", USBDEVNAME(sc->aue_dev));
+#endif
+ return 0;
+ }
+
#if 0
/*
* The Am79C901 HomePNA PHY actually contains
@@ -545,11 +552,12 @@
* This turns on the 'dual link LED' bin in the auxmode
* register of the Broadcom PHY.
*/
- if (sc->aue_flags & LSYS) {
+ if (!sc->aue_dying && (sc->aue_flags & LSYS)) {
u_int16_t auxmode;
auxmode = aue_miibus_readreg(dev, 0, 0x1b);
aue_miibus_writereg(dev, 0, 0x1b, auxmode | 0x04);
}
+ DPRINTFN(5,("%s: %s: exit\n", USBDEVNAME(sc->aue_dev), __FUNCTION__));
}
#define AUE_POLY 0xEDB88320
Home |
Main Index |
Thread Index |
Old Index