]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
xhci: Update the times for usb command timeouts.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 14 Jun 2014 16:25:17 +0000 (12:25 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 14 Jun 2014 16:25:17 +0000 (12:25 -0400)
commit88fa2273e85d569a64de8d9c4290915f59b04bd3
tree30a98d5f840d09fa45047f3f9cfa59b0aa4877b1
parentffc06871281830ac0b2ec9fe6a2cb5403bf72503
xhci: Update the times for usb command timeouts.

The xhci controller had a hardcoded 1 second timeout for both bulk and
control transfers.  The 1 second bulk timeout is too small for some
real devices.

Increase both times to 5.1 seconds - according to the USB spec, the
maximum time a command should take is 5 seconds.  However, have the
set_address command only wait for 150ms (spec says set_address should
take no more than 50ms).

Introduce usb_xfer_time() to calculate maximum command time.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/usb-xhci.c
src/hw/usb.c
src/hw/usb.h