[U-Boot] [PATCH 7/7] usb: hub: Increase the query delay

Stephen Warren
2016-05-04T17:11:53Z

On 05/03/2016 02:51 PM, Marek Vasut wrote:
> Increase the query delay, otherwise some sticks are not detected.
> The problem shows up on the USB bus analyzer such that the stick
> takes longer time to switch from FS mode to HS mode than the code
> allows.

> diff --git a/common/usb_hub.c b/common/usb_hub.c

> @@ -145,7 +145,7 @@ static void usb_hub_power_on(struct usb_hub_device *hub)
> * Do a minimum delay of the larger value of 100ms or pgood_delay
> * so that the power can stablize before the devices are queried
> */
> - hub->query_delay = get_timer(0) + max(100, (int)pgood_delay);
> + hub->query_delay = get_timer(0) + max(1000, (int)pgood_delay);

The comment right above that line of code should be updated to say 1000
not 100, and to mention why we're using the non-spec value.