]> git.sur5r.net Git - u-boot/commitdiff
ehci: speed up initialization
authorVincent Palatin <vpalatin@chromium.org>
Mon, 5 Dec 2011 22:52:22 +0000 (14:52 -0800)
committerRemy Bohmer <linux@bohmer.net>
Sun, 11 Dec 2011 13:42:57 +0000 (14:42 +0100)
According to EHCI specification v1.0, the controller should stabilize
the power on a port at most 20 ms after the port power bit transition.
So, we put this setting in the virtual descriptor corresponding field,
(bPwrOn2PwrGood = 10 => 10 x 2ms = 20ms), this saves about 500ms at each
controller initialization/enumeration.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
drivers/usb/host/ehci-hcd.c

index b4c9db84640de1a97bd8de380e0d678a01c099c0..1cee158b0189f798d6ed8ac3c82df4d935890b44 100644 (file)
@@ -52,7 +52,7 @@ static struct descriptor {
                0x29,           /* bDescriptorType: hub descriptor */
                2,              /* bNrPorts -- runtime modified */
                0,              /* wHubCharacteristics */
-               0xff,           /* bPwrOn2PwrGood */
+               10,             /* bPwrOn2PwrGood */
                0,              /* bHubCntrCurrent */
                {},             /* Device removable */
                {}              /* at most 7 ports! XXX */