mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 07:04:28 +00:00
usb: hub: Add missing reset recovery delay
Some devices like YubiKeys need more time before SET_ADDRESS. The spec says we need to wait 10ms. Signed-off-by: Hector Martin <marcan@marcan.st> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
a14843fdac
commit
b5999f8f6c
1 changed files with 7 additions and 0 deletions
|
@ -395,6 +395,13 @@ int usb_hub_port_connect_change(struct usb_device *dev, int port)
|
|||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
* USB 2.0 7.1.7.5: devices must be able to accept a SetAddress()
|
||||
* request (refer to Section 11.24.2 and Section 9.4 respectively)
|
||||
* after the reset recovery time 10 ms
|
||||
*/
|
||||
mdelay(10);
|
||||
|
||||
#if CONFIG_IS_ENABLED(DM_USB)
|
||||
struct udevice *child;
|
||||
|
||||
|
|
Loading…
Reference in a new issue