2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
* bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
This commit is contained in:
parent
b5d5993b6d
commit
11d1828177
2 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
* bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
|
||||
(grub_uhci_portstatus): Likewise.
|
||||
(grub_uhci_portstatus): Add necessary delay.
|
||||
* bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
|
||||
|
||||
2009-12-21 Carles Pina i Estany <carles@pina.cat>
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ grub_usb_hub_add_dev (grub_usb_controller_t controller, grub_usb_speed_t speed)
|
|||
if (! grub_usb_devs[i])
|
||||
break;
|
||||
}
|
||||
if (grub_usb_devs[i])
|
||||
if (i == 128)
|
||||
{
|
||||
grub_error (GRUB_ERR_IO, "Can't assign address to USB device");
|
||||
return NULL;
|
||||
|
@ -60,6 +60,7 @@ grub_usb_hub_add_dev (grub_usb_controller_t controller, grub_usb_speed_t speed)
|
|||
| GRUB_USB_REQTYPE_TARGET_DEV),
|
||||
GRUB_USB_REQ_SET_ADDRESS,
|
||||
i, 0, 0, NULL);
|
||||
|
||||
dev->addr = i;
|
||||
dev->initialized = 1;
|
||||
grub_usb_devs[i] = dev;
|
||||
|
|
Loading…
Reference in a new issue