Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci my card prints transmit aborted and then hangs. ...
details: https://anonhg.NetBSD.org/src/rev/e4108075e938
branches: trunk
changeset: 534504:e4108075e938
user: christos <christos%NetBSD.org@localhost>
date: Sun Jul 28 15:41:00 2002 +0000
description:
my card prints transmit aborted and then hangs. Let's try to reset it.
diffstat:
sys/dev/pci/if_vr.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r cbe4f1e24a7b -r e4108075e938 sys/dev/pci/if_vr.c
--- a/sys/dev/pci/if_vr.c Sun Jul 28 15:22:06 2002 +0000
+++ b/sys/dev/pci/if_vr.c Sun Jul 28 15:41:00 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vr.c,v 1.53 2001/11/13 07:48:45 lukem Exp $ */
+/* $NetBSD: if_vr.c,v 1.54 2002/07/28 15:41:00 christos Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -104,7 +104,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.53 2001/11/13 07:48:45 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.54 2002/07/28 15:41:00 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -872,6 +872,15 @@
VR_SETBIT16(sc, VR_COMMAND, VR_CMD_TX_ON);
VR_SETBIT16(sc, VR_COMMAND, VR_CMD_TX_GO);
}
+ /*
+ * Unfortunately many cards get stuck after
+ * aborted transmits, so we reset them.
+ */
+ if (status & VR_ISR_TX_ABRT) {
+ printf("%s: restarting\n", sc->vr_dev.dv_xname);
+ dotx = 0;
+ (void) vr_init(ifp);
+ }
}
if (status & VR_ISR_BUSERR) {
Home |
Main Index |
Thread Index |
Old Index