From 6bb0c0b2661593317904cfd02cc3036cff3beefd Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 1 Apr 2002 21:52:45 +0000 Subject: 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. --- sys/dev/usb/uhci.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/uhci.c') 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; } -- cgit v1.1