summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_freebsd.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-06-06 21:45:09 +0000
committerhselasky <hselasky@FreeBSD.org>2011-06-06 21:45:09 +0000
commit5f55faed0601b0486b09dd7ec3727f5312e33d5d (patch)
tree0b32799a28515b5c61e32d9d9a2ae9fedbba5065 /sys/dev/usb/usb_freebsd.h
parentc8e197a2037e17686f997232419f8b02d1e61ffc (diff)
downloadFreeBSD-src-5f55faed0601b0486b09dd7ec3727f5312e33d5d.zip
FreeBSD-src-5f55faed0601b0486b09dd7ec3727f5312e33d5d.tar.gz
Improve enumeration of Low- and Full-speed devices connected through a
High-speed USB HUB by resetting the transaction translator (TT) before trying re-enumeration. Also when clear-stall fails multiple times try a re-enumeration. Suggested by: Trevor Blackwell MFC after: 14 days
Diffstat (limited to 'sys/dev/usb/usb_freebsd.h')
-rw-r--r--sys/dev/usb/usb_freebsd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_freebsd.h b/sys/dev/usb/usb_freebsd.h
index a44e530..ae69cdb 100644
--- a/sys/dev/usb/usb_freebsd.h
+++ b/sys/dev/usb/usb_freebsd.h
@@ -66,6 +66,7 @@
#define USB_HUB_MAX_DEPTH 5
#define USB_EP0_BUFSIZE 1024 /* bytes */
+#define USB_CS_RESET_LIMIT 20 /* failures = 20 * 50 ms = 1sec */
typedef uint32_t usb_timeout_t; /* milliseconds */
typedef uint32_t usb_frlength_t; /* bytes */
OpenPOWER on IntegriCloud