summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ehci.c
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2005-03-06 05:12:01 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2005-03-06 05:12:01 +0000
commit04f2e148f9f06a8ea3bd2c0b954595742017e3cf (patch)
treef4ee5a9c8f1df75680477b2833bd34320f562ffa /sys/dev/usb/ehci.c
parent1cef10f687b0da1a6546c67b3f2c17e48b5d7ecf (diff)
In [eo]hci_waitintr, xfer->timeout is in ms, not hz.
ok dlg@
Diffstat (limited to 'sys/dev/usb/ehci.c')
-rw-r--r--sys/dev/usb/ehci.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 63c6c0bd17c..e678661acd4 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.35 2005/02/28 12:35:44 pascoe Exp $ */
+/* $OpenBSD: ehci.c,v 1.36 2005/03/06 05:12:00 pascoe Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -868,12 +868,11 @@ ehci_idone(struct ehci_xfer *ex)
void
ehci_waitintr(ehci_softc_t *sc, usbd_xfer_handle xfer)
{
- int timo = xfer->timeout;
- int usecs;
+ int timo;
u_int32_t intrs;
xfer->status = USBD_IN_PROGRESS;
- for (usecs = timo * 1000000 / hz; usecs > 0; usecs -= 1000) {
+ for (timo = xfer->timeout; timo >= 0; timo--) {
usb_delay_ms(&sc->sc_bus, 1);
if (sc->sc_dying)
break;