]> xenbits.xensource.com Git - seabios.git/commitdiff
EHCI: increase CONNECT detection delay
authorKevin O'Connor <kevin@koconnor.net>
Thu, 2 Aug 2012 00:40:03 +0000 (20:40 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 2 Aug 2012 00:40:03 +0000 (20:40 -0400)
Increase delay to fix detection issues found.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Signed-off-by: Sven Schnelle <svens@stackframe.org>
src/usb-ehci.c

index 3c0be136869c94a32c8df771b10685674ca1a66f..26766152da73b3319be695ec06e02a568d9ebb99 100644 (file)
@@ -82,7 +82,9 @@ ehci_hub_detect(struct usbhub_s *hub, u32 port)
         writel(portreg, portsc);
         msleep(EHCI_TIME_POSTPOWER);
     } else {
-        msleep(1); // XXX - time for connect to be detected.
+        // Port is already powered up, but we don't know how long it
+        // has been powered up, so wait the 20ms.
+        msleep(EHCI_TIME_POSTPOWER);
     }
     portsc = readl(portreg);