[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:24:25 EDT 2012
- the 100ms value is taken from Linux & u-boot
- 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
--
1.7.7.6
More information about the barebox
mailing list