summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-06 02:49:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-06 02:49:48 +0000
commit1f27c7d93a89e52202c6046c6aa2e11fdc6b28a5 (patch)
tree6f239a27033e45f32b9d500af8d8fb0d8e10bd25 /sys/dev/usb
parent744d46dbd08f9c47659e2a33a9173793a825e7df (diff)
from netbsd, via loki@animata.net, ehci.c revision 1.58 without some
printfs that are more related to the data toggle. log message: Fix a stupid bug in ehci_check_intr() that caused use to try to complete a transaction that was still running. Now ehci can handle multiple devices being active at once.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ehci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 4c49cf4bb4b..0ad1fb003b8 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.9 2004/07/06 02:49:05 deraadt Exp $ */
+/* $OpenBSD: ehci.c,v 1.10 2004/07/06 02:49:47 deraadt Exp $ */
/* $NetBSD: ehci.c,v 1.54 2004/01/17 13:15:05 jdolecek Exp $ */
/*
@@ -683,7 +683,7 @@ ehci_check_intr(ehci_softc_t *sc, struct ehci_xfer *ex)
if (status & EHCI_QTD_HALTED)
goto done;
/* We want short packets, and it is short: it's done */
- if (EHCI_QTD_SET_BYTES(status) != 0)
+ if (EHCI_QTD_GET_BYTES(status) != 0)
goto done;
}
DPRINTFN(12, ("ehci_check_intr: ex=%p std=%p still active\n",