[PATCH 1/2] usb_hub_power_on: wait for the power to be stable
Eric Bénard
eric at eukrea.com
Tue Aug 28 11:30:16 EDT 2012
Hi Sascha,
Le Tue, 28 Aug 2012 17:24:25 +0200,
Eric Bénard <eric at eukrea.com> a écrit :
> - the 100ms value is taken from Linux & u-boot
and in fact after a few more tests without debug enabled, it seems that
a 200 ms value would be needed to get it working reliable with several
peripherals so please wait for v2 before applying thyis patch.
Thanks,
Eric
> - without this, I don't see peripherals connected to a hub
> connected to an i.MX35's host port.
>
> Signed-off-by: Eric Bénard <eric at eukrea.com>
> ---
> drivers/usb/core/usb.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
> index a5075d5..ae3eb88 100644
> --- a/drivers/usb/core/usb.c
> +++ b/drivers/usb/core/usb.c
> @@ -948,7 +948,7 @@ static void usb_hub_power_on(struct usb_hub_device *hub)
> usb_set_port_feature(dev, i + 1, USB_PORT_FEAT_POWER);
> USB_HUB_PRINTF("port %d returns %lX\n", i + 1, dev->status);
> }
> - mdelay(20);
> + mdelay(100);
> }
>
> #define MAX_TRIES 5
More information about the barebox
mailing list