]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[usb] Record USB device speed separately from current port speed
authorMichael Brown <mcb30@ipxe.org>
Sun, 6 Dec 2015 23:41:26 +0000 (23:41 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 7 Dec 2015 13:08:23 +0000 (13:08 +0000)
commiteb1fc1e9579a4f70bb28283bf3eadcf493fa0dcb
tree724bea4a4a87fd4625e45ba9811fa0b48c0dc97e
parent15ce7ce355b3cfb5ec8bc2d51528b08f02f4648b
[usb] Record USB device speed separately from current port speed

Record the speed of a USB device based on the port's speed at the time
that the device was enabled.  This allows us to remember the device's
speed even after the device has been disconnected (and so the port's
current speed has changed).

In particular, this allows us to correctly identify the transaction
translator for a low-speed or full-speed device after the device has
been disconnected.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/usb.c
src/drivers/usb/ehci.c
src/drivers/usb/uhci.c
src/drivers/usb/xhci.c
src/include/ipxe/usb.h