mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 16:01:38 +03:00
[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>
This commit is contained in:
@@ -970,10 +970,10 @@ static uint32_t ehci_endpoint_characteristics ( struct usb_endpoint *ep ) {
|
||||
chr |= EHCI_CHR_TOGGLE;
|
||||
|
||||
/* Determine endpoint speed */
|
||||
if ( usb->port->speed == USB_SPEED_HIGH ) {
|
||||
if ( usb->speed == USB_SPEED_HIGH ) {
|
||||
chr |= EHCI_CHR_EPS_HIGH;
|
||||
} else {
|
||||
if ( usb->port->speed == USB_SPEED_FULL ) {
|
||||
if ( usb->speed == USB_SPEED_FULL ) {
|
||||
chr |= EHCI_CHR_EPS_FULL;
|
||||
} else {
|
||||
chr |= EHCI_CHR_EPS_LOW;
|
||||
|
||||
Reference in New Issue
Block a user