summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-07-20 14:31:18 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-07-20 14:31:18 +0000
commite2b28272f3b02d2885a9e816dc3ea74d5e49e010 (patch)
treec41b9e53048b7cdd23aee3f4783a14662c7bed36 /sys/dev/usb/uhci.c
parentef7b840a5c1d0246cab9730c06b5d8ddcd4e7423 (diff)
Don't show debug output when an interrupt is not for us.
From Marc Winiger <mw@msys.ch> ok dlg, claudio.
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 3a69c6c43ec..01c31b14e3f 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.60 2007/06/15 11:41:48 mbalmer Exp $ */
+/* $OpenBSD: uhci.c,v 1.61 2007/07/20 14:31:17 mbalmer Exp $ */
/* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -1166,6 +1166,10 @@ uhci_intr1(uhci_softc_t *sc)
int status;
int ack;
+ status = UREAD2(sc, UHCI_STS) & UHCI_STS_ALLINTRS;
+ if (status == 0) /* The interrupt was not for us. */
+ return (0);
+
#ifdef UHCI_DEBUG
if (uhcidebug > 15) {
DPRINTF(("%s: uhci_intr1\n", sc->sc_bus.bdev.dv_xname));
@@ -1173,10 +1177,6 @@ uhci_intr1(uhci_softc_t *sc)
}
#endif
- status = UREAD2(sc, UHCI_STS) & UHCI_STS_ALLINTRS;
- if (status == 0) /* The interrupt was not for us. */
- return (0);
-
if (sc->sc_suspend != PWR_RESUME) {
printf("%s: interrupt while not operating ignored\n",
sc->sc_bus.bdev.dv_xname);