diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-05-19 14:21:18 -0600 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-06-01 19:20:07 +0200 |
commit | 77b83e6d099cb2149e5b2c33a700003227d99297 (patch) | |
tree | 70b71935bbd5913695262cd06bd8ca6789d3f79d /common/usb_hub.c | |
parent | 0d437bcaf9be36d7bb954cb261635678c790dff7 (diff) | |
download | u-boot-imx-77b83e6d099cb2149e5b2c33a700003227d99297.zip u-boot-imx-77b83e6d099cb2149e5b2c33a700003227d99297.tar.gz u-boot-imx-77b83e6d099cb2149e5b2c33a700003227d99297.tar.bz2 |
usb: hub: remove CONFIG_USB_HUB_MIN_POWER_ON_DELAY
Now that we wait the correct specification-mandated time at the end of
usb_hub_power_on(), I suspect that CONFIG_USB_HUB_MIN_POWER_ON_DELAY has
no purpose.
For cm_t35.h, we already wait longer than the original MIN_POWER_ON_DELAY,
so this change is safe.
For gw_ventana.h, we will wait as long as the original MIN_POWER_ON_DELAY
iff pgood_delay was at least 200ms. I'm not sure if this is the case or
not, hence I've CC'd relevant people to test this change.
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'common/usb_hub.c')
-rw-r--r-- | common/usb_hub.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/usb_hub.c b/common/usb_hub.c index 4875a51..2add4b9 100644 --- a/common/usb_hub.c +++ b/common/usb_hub.c @@ -35,10 +35,6 @@ #include <asm/4xx_pci.h> #endif -#ifndef CONFIG_USB_HUB_MIN_POWER_ON_DELAY -#define CONFIG_USB_HUB_MIN_POWER_ON_DELAY 1000 -#endif - #define USB_BUFSIZ 512 static struct usb_hub_device hub_dev[USB_MAX_HUB]; @@ -142,7 +138,7 @@ static void usb_hub_power_on(struct usb_hub_device *hub) * Wait for power to become stable, * plus spec-defined max time for device to connect */ - mdelay(pgood_delay + CONFIG_USB_HUB_MIN_POWER_ON_DELAY); + mdelay(pgood_delay + 1000); } void usb_hub_reset(void) |