Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Rearrange register dump when the controller is d...
details: https://anonhg.NetBSD.org/src/rev/8eebbd683fa8
branches: trunk
changeset: 512621:8eebbd683fa8
user: augustss <augustss%NetBSD.org@localhost>
date: Wed Jul 11 14:11:00 2001 +0000
description:
Rearrange register dump when the controller is dying. Fixes PR 13430.
diffstat:
sys/dev/usb/uhci.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 8a521c500439 -r 8eebbd683fa8 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c Wed Jul 11 10:00:08 2001 +0000
+++ b/sys/dev/usb/uhci.c Wed Jul 11 14:11:00 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uhci.c,v 1.135 2001/04/01 14:59:52 augustss Exp $ */
+/* $NetBSD: uhci.c,v 1.136 2001/07/11 14:11:00 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@@ -1198,14 +1198,14 @@
}
if (status & UHCI_STS_HCH) {
/* no acknowledge needed */
- if (!sc->sc_dying)
+ if (!sc->sc_dying) {
printf("%s: host controller halted\n",
USBDEVNAME(sc->sc_bus.bdev));
+#ifdef UHCI_DEBUG
+ uhci_dump_all(sc);
+#endif
+ }
sc->sc_dying = 1;
-#ifdef UHCI_DEBUG
- uhci_dump_all(sc);
-#endif
-
}
if (!ack)
Home |
Main Index |
Thread Index |
Old Index