* grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms

after enabling port.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-05-16 08:50:21 +02:00
parent ff44d107ad
commit 153a4b552d
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
after enabling port.
2011-05-16 Vladimir Serbinenko <phcoder@gmail.com> 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
Skip incorrect USB devices. Skip incorrect USB devices.

View file

@ -215,6 +215,8 @@ attach_root_port (struct grub_usb_hub *hub, int portno,
return; return;
hub->controller->dev->pending_reset = grub_get_time_ms () + 5000; hub->controller->dev->pending_reset = grub_get_time_ms () + 5000;
grub_millisleep (10);
/* Enable the port and create a device. */ /* Enable the port and create a device. */
dev = grub_usb_hub_add_dev (hub->controller, speed); dev = grub_usb_hub_add_dev (hub->controller, speed);
hub->controller->dev->pending_reset = 0; hub->controller->dev->pending_reset = 0;