diff options
| author | Vincent Palatin <vpalatin@chromium.org> | 2011-12-05 14:52:22 -0800 | 
|---|---|---|
| committer | Remy Bohmer <linux@bohmer.net> | 2011-12-11 14:42:57 +0100 | 
| commit | 5f4b4f2fed3ab8590c8c06b78642f8c1467acacf (patch) | |
| tree | cca588fe85801f3edfefd897a8c67a5880c240bb | |
| parent | 1af9f9633759a5f60e8b8bd4fcdb17a3d1aece5f (diff) | |
| download | olio-uboot-2014.01-5f4b4f2fed3ab8590c8c06b78642f8c1467acacf.tar.xz olio-uboot-2014.01-5f4b4f2fed3ab8590c8c06b78642f8c1467acacf.zip | |
ehci: speed up initialization
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>
| -rw-r--r-- | drivers/usb/host/ehci-hcd.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index b4c9db846..1cee158b0 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -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 */ |