[U-Boot] [PATCH] ehci: speed up initialization
Vincent Palatin
vpalatin at chromium.org
Mon Dec 19 19:18:05 CET 2011
On Mon, Dec 19, 2011 at 08:59, Remy Bohmer <linux at bohmer.net> wrote:
> Hi Wolfgang,
>
> 2011/12/19 Wolfgang Grandegger <wg at grandegger.com>:
>> On 12/19/2011 01:51 PM, Vincent Palatin wrote:
>>> On Mon, Dec 19, 2011 at 04:07, Wolfgang Grandegger <wg at grandegger.com> wrote:
>>>> I just realized that this patch breaks "usb start" on my mx53loco board:
>>>>
>>>> The device is not found at the first attempt. Obviously, a value of 10
>>>> for bPwrOn2PwrGood seems too short but 20 works fine. Would that be a
>>>> resonable compromise? If yes, I could send a patch.
>>>
>>> This doesn't match the EHCI standard which explicity states that the
>>> power should be good after 20ms (paragraph 2.3.9 in EHCI 1.0), so we
>>> should probably find whether we are missing another delay somewhere in
>>> the generic EHCI code (which used to be hidden and should be fixed) or
>>> if i.MX53 is not compliant with the standard and need a special quirk.
>>
>> I'm not an USB expert but if I look into the hub_power_on() function of
>> the Linux kernel it waits at least 100ms (and only once). See:
>>
>> http://lxr.linux.no/#linux+v3.1.5/drivers/usb/core/hub.c#L567
>
> I would prefer a solution in line with the specification, but what is
> the reason why Linux takes 100 msec here?
The patch adding this delay was the following one :
commit b789696af8b4102b7cc26dec30c2c51ce51ee18b
Author: David Brownell <david-b at pacbell.net>
Date: Wed Aug 31 10:41:44 2005 -0700
[PATCH] USB: relax usbcore reset timings
This appears to help some folk, please merge.
This patch relaxes reset timings. There are some reports that it
helps make enumeration work better on some high speed devices.
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
> Is that just chosen randomly , or was there a good reason for it?
So random timings based on user inputs.
--
Vincent Palatin
More information about the U-Boot
mailing list