summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-03-04 23:55:32 +0000
committerkettenis <kettenis@openbsd.org>2011-03-04 23:55:32 +0000
commit510edd6f55300977e253fc546c427fe43f86364d (patch)
tree00c204b863d3c83ac4d894c3d02a7b76224d01d3
parentkill is_rx_elem_unknown. (diff)
downloadwireguard-openbsd-510edd6f55300977e253fc546c427fe43f86364d.tar.xz
wireguard-openbsd-510edd6f55300977e253fc546c427fe43f86364d.zip
Apparently keeping some USB devices in reset for too long makes them
non-functional. Reduce the root port reset delay to 100 ms. This is still twice as long as the delay mandated by the standard, but makes the Gunze TouchScreen on the Sony Vaio VGN-UX91S and a few other devices work. ok jakemsr@
-rw-r--r--sys/dev/usb/usb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h
index d8ed1dcfa1f..5542b65b303 100644
--- a/sys/dev/usb/usb.h
+++ b/sys/dev/usb/usb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb.h,v 1.36 2011/01/15 23:58:43 jakemsr Exp $ */
+/* $OpenBSD: usb.h,v 1.37 2011/03/04 23:55:32 kettenis Exp $ */
/* $NetBSD: usb.h,v 1.69 2002/09/22 23:20:50 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb.h,v 1.14 1999/11/17 22:33:46 n_hibma Exp $ */
@@ -511,7 +511,7 @@ typedef struct {
#else
/* Allow for marginal (i.e. non-conforming) devices. */
#define USB_PORT_RESET_DELAY 50 /* ms */
-#define USB_PORT_ROOT_RESET_DELAY 250 /* ms */
+#define USB_PORT_ROOT_RESET_DELAY 100 /* ms */
#define USB_PORT_RESET_RECOVERY 250 /* ms */
#define USB_PORT_POWERUP_DELAY 300 /* ms */
#define USB_SET_ADDRESS_SETTLE 10 /* ms */