Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Increase the timeout waiting for reset to finish.
details: https://anonhg.NetBSD.org/src/rev/fbe03b9a9893
branches: trunk
changeset: 535272:fbe03b9a9893
user: augustss <augustss%NetBSD.org@localhost>
date: Tue Aug 13 09:51:27 2002 +0000
description:
Increase the timeout waiting for reset to finish.
Update documentation URL.
diffstat:
sys/dev/usb/ehci.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r 35ca18216d32 -r fbe03b9a9893 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Tue Aug 13 09:46:21 2002 +0000
+++ b/sys/dev/usb/ehci.c Tue Aug 13 09:51:27 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.33 2002/07/11 21:14:24 augustss Exp $ */
+/* $NetBSD: ehci.c,v 1.34 2002/08/13 09:51:27 augustss Exp $ */
/*
* TODO
@@ -45,14 +45,14 @@
* USB Enhanced Host Controller Driver, a.k.a. USB 2.0 controller.
*
* The EHCI 0.96 spec can be found at
- * http://developer.intel.com/technology/usb/download/ehci-r096.pdf
+ * http://developer.intel.com/technology/usb/download/ehci-r10.pdf
* and the USB 2.0 spec at
* http://www.usb.org/developers/data/usb_20.zip
*
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.33 2002/07/11 21:14:24 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.34 2002/08/13 09:51:27 augustss Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -334,7 +334,7 @@
usb_delay_ms(&sc->sc_bus, 1);
EOWRITE4(sc, EHCI_USBCMD, EHCI_CMD_HCRESET);
for (i = 0; i < 100; i++) {
- delay(10);
+ usb_delay_ms(&sc->sc_bus, 1);
hcr = EOREAD4(sc, EHCI_USBCMD) & EHCI_CMD_HCRESET;
if (!hcr)
break;
@@ -413,7 +413,7 @@
EOWRITE4(sc, EHCI_CONFIGFLAG, EHCI_CONF_CF);
for (i = 0; i < 100; i++) {
- delay(10);
+ usb_delay_ms(&sc->sc_bus, 1);
hcr = EOREAD4(sc, EHCI_USBSTS) & EHCI_STS_HCH;
if (!hcr)
break;
Home |
Main Index |
Thread Index |
Old Index