diff options
| author | Josef Karthauser <joe@FreeBSD.org> | 2002-01-03 00:37:56 +0000 |
|---|---|---|
| committer | Josef Karthauser <joe@FreeBSD.org> | 2002-01-03 00:37:56 +0000 |
| commit | b992262bcfb52715565e3041dc9e02dd1d0b2e99 (patch) | |
| tree | aafeb51d9591147817454ae8e5ae0ab5c13fc416 /sys | |
| parent | 7ff48af7040fda17e0d7ebb08fd7bf86abd6273d (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/usb/ohci.c | 3 | ||||
| -rw-r--r-- | sys/dev/usb/uhci.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 987b611cbe4c..debe3a0aa010 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -2308,7 +2308,8 @@ ohci_root_ctrl_start(xfer) index)); OWRITE4(sc, port, UPS_RESET); for (i = 0; i < 10; i++) { - usb_delay_ms(&sc->sc_bus, 10); + usb_delay_ms(&sc->sc_bus, + USB_PORT_ROOT_RESET_DELAY); if ((OREAD4(sc, port) & UPS_RESET) == 0) break; } diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index a98f28d2ae44..27ae977cc745 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -2918,7 +2918,7 @@ uhci_root_ctrl_start(usbd_xfer_handle xfer) case UHF_PORT_RESET: x = UREAD2(sc, port); UWRITE2(sc, port, x | UHCI_PORTSC_PR); - usb_delay_ms(&sc->sc_bus, 10); + usb_delay_ms(&sc->sc_bus, USB_PORT_ROOT_RESET_DELAY); UWRITE2(sc, port, x & ~UHCI_PORTSC_PR); delay(100); x = UREAD2(sc, port); |
