From eb1fc1e9579a4f70bb28283bf3eadcf493fa0dcb Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 6 Dec 2015 23:41:26 +0000 Subject: [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 --- src/include/ipxe/usb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/ipxe') diff --git a/src/include/ipxe/usb.h b/src/include/ipxe/usb.h index b3ce7b741..c268988f4 100644 --- a/src/include/ipxe/usb.h +++ b/src/include/ipxe/usb.h @@ -698,6 +698,8 @@ struct usb_device { char name[32]; /** USB port */ struct usb_port *port; + /** Device speed */ + unsigned int speed; /** List of devices on this bus */ struct list_head list; /** Device address, if assigned */ -- cgit v1.2.3-55-g7522