* grub-core/bus/usb/usbhub.c: Fix recheck logic.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-07-11 14:52:46 +02:00
parent 6f80a7b231
commit efa8640adb
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/bus/usb/usbhub.c: Fix recheck logic.
2013-07-11 Vladimir Serbinenko <phcoder@gmail.com> 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs

View file

@ -688,10 +688,12 @@ grub_usb_poll_devices (int wait_for_completion)
* addressed properly, timeout happened */ * addressed properly, timeout happened */
hub->controller->dev->pending_reset = 0; hub->controller->dev->pending_reset = 0;
npending--; npending--;
speed = hub->controller->dev->detect_dev (hub->controller,
i, &changed);
} }
} }
if (!hub->controller->dev->pending_reset)
speed = hub->controller->dev->detect_dev (hub->controller,
i, &changed);
if (changed) if (changed)
{ {
detach_device (hub->devices[i]); detach_device (hub->devices[i]);