[usb] Fix USB timeouts to match specification
authorMichael Brown <mcb30@ipxe.org>
Wed, 18 Mar 2015 16:43:18 +0000 (16:43 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 18 Mar 2015 16:43:18 +0000 (16:43 +0000)
commitacc27b9005fcef1f51c0dd7226faa5c101aa96df
tree9c1c577cd3f6f040deb062b5cf4fba1b34f9ca1c
parentc492a9fd92bbcd1217dd5396b741f4abea223830
[usb] Fix USB timeouts to match specification

Several of the USB timeouts were chosen on the principle of "pick an
arbitrary but ridiculously large value, just to be safe".  It turns
out that some of the timeouts permitted by the USB specification are
even larger: for example, control transactions are allowed to take up
to five seconds to complete.

Fix up these USB timeout values to match those found in the USB2
specification.

Debugged-by: Robin Smidsrød <robin@smidsrod.no>
Tested-by: Robin Smidsrød <robin@smidsrod.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/usb.c
src/drivers/usb/xhci.h
src/include/ipxe/usb.h