Add USB EHCI controller support.
[seabios.git] / src / usb-hub.c
index ce40099cd32564e505ff6afef7996f2935a9c9d6..9effbc3328f8859fdbc416f37c1a4df94baf4cc1 100644 (file)
@@ -126,7 +126,8 @@ init_hub_port(void *data)
 
     // Set address of port
     struct usb_pipe *pipe = usb_set_address(
-        hub->cntl, !!(sts.wPortStatus & USB_PORT_STAT_LOW_SPEED));
+        hub, port, ((sts.wPortStatus & USB_PORT_STAT_SPEED_MASK)
+                    >> USB_PORT_STAT_SPEED_SHIFT));
     if (!pipe)
         goto resetfail;
     mutex_unlock(&hub->cntl->resetlock);