summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authoraugustss <augustss@NetBSD.org>1998-12-28 02:23:25 +0000
committeraugustss <augustss@NetBSD.org>1998-12-28 02:23:25 +0000
commit2e0dbd3cc0df2eeb02b052c70e27b12841c4cece (patch)
treefc9cfbfbf404a96f2aedfd45892b081fc95c57de /sys/dev
parentcd36ca65ddd542d65546466981de0426dff7fdda (diff)
Add another power up wait so that some devices (that do not follow
the spec) start up more reliably.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/uhub.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index befb69176a3..08b72012cbb 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -1,4 +1,4 @@
-/* $NetBSD: uhub.c,v 1.11 1998/12/26 12:53:02 augustss Exp $ */
+/* $NetBSD: uhub.c,v 1.12 1998/12/28 02:23:25 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -267,10 +267,10 @@ uhub_init_port(up)
port, pstatus, UGETW(up->status.wPortChange)));
if ((pstatus & UPS_PORT_POWER) == 0) {
/* Port lacks power, turn it on */
-#if 0
+
/* First let the device go through a good power cycle, */
- usbd_delay_ms(dev->bus, USB_POWER_DOWN_TIME);
-#endif
+ usbd_delay_ms(dev->bus, USB_PORT_POWER_DOWN_TIME);
+
/* then turn the power on. */
r = usbd_set_port_feature(dev, port, UHF_PORT_POWER);
if (r != USBD_NORMAL_COMPLETION)