Browse Source

delay 200ms before usb port rescan to wait usb ready.

Change-Id: If0200010610a71dfa02f2c7361b703d6f56f4e70
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
master
Chong Qiao 4 years ago
parent
commit
a8cc915704
  1. 1
      sys/dev/usb/usb.c

1
sys/dev/usb/usb.c

@ -1786,6 +1786,7 @@ void usb_hub_port_connect_change(struct usb_device *dev, int port)
/* Reset the port */
if (hub_port_reset(dev, port, &portstatus) < 0) {
printf("cannot reset port %i!?\n", port + 1);
wait_ms(200);
hub_port_need_rescan = 1;
return;
}

Loading…
Cancel
Save