+2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Slight improve in USB-related boot-time checkpoints.
+
2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/boottime.c: Fix copyright header.
grub_dprintf ("ehci", "portstatus: enable\n");
+ grub_boot_time ("Resetting port %d", port);
+
/* Now we will do reset - if HIGH speed device connected, it will
* result in Enabled state, otherwise port remains disabled. */
/* Set RESET bit for 50ms */
/* Reset RESET bit and wait for the end of reset */
grub_ehci_port_resbits (e, port, GRUB_EHCI_PORT_RESET);
endtime = grub_get_time_ms () + 1000;
- grub_boot_time ("Resetting port %d", port);
while (grub_ehci_port_read (e, port) & GRUB_EHCI_PORT_RESET)
if (grub_get_time_ms () > endtime)
return grub_error (GRUB_ERR_IO,
GRUB_USB_HUB_FEATURE_PORT_RESET,
i, 0, 0);
dev->ports[i - 1].state = PORT_STATE_NORMAL;
- grub_boot_time ("Resetting port %d", i);
+ grub_boot_time ("Resetting port %p:%d", dev, i - 1);
rescan = 1;
/* We cannot reset more than one device at the same time !
dev->ports[i - 1].soft_limit_time = grub_get_time_ms () + 250;
dev->ports[i - 1].hard_limit_time = dev->ports[i - 1].soft_limit_time + 1750;
dev->ports[i - 1].state = PORT_STATE_WAITING_FOR_STABLE_POWER;
+ grub_boot_time ("Scheduling stable power wait for port %p:%d",
+ dev, i - 1);
continue;
}
}
}
}
- grub_boot_time ("Probing USB device driver");
-
while (1)
{
rescan = 0;