summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-04-01 21:52:45 +0000
committerjoe <joe@FreeBSD.org>2002-04-01 21:52:45 +0000
commit6bb0c0b2661593317904cfd02cc3036cff3beefd (patch)
treee0d4885aced302e415a2a0a3ae3a07fb58a89583 /sys/dev/usb/uhci.c
parent002b2c357ca9501b947e843ab3630648151504a7 (diff)
downloadFreeBSD-src-6bb0c0b2661593317904cfd02cc3036cff3beefd.zip
FreeBSD-src-6bb0c0b2661593317904cfd02cc3036cff3beefd.tar.gz
MFNetBSD:
revision 1.136 date: 2001/07/11 14:11:00; author: augustss; state: Exp; lines: +5 -5 Rearrange register dump when the controller is dying. Fixes PR 13430.
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index dd8cbf7..5a10dd6 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,5 @@
-/* $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$ */
/*
@@ -1210,9 +1211,13 @@ uhci_intr(void *arg)
}
if (status & UHCI_STS_HCH) {
/* no acknowledge needed */
- if (!sc->sc_dying)
- printf("%s: host controller halted\n",
+ 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;
}
OpenPOWER on IntegriCloud