* grub-core/disk/ahci.c: Give more time for AHCI request.

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2013-03-25 10:32:56 +01:00
1 parent daae8f9e6d
commit 8990963a7f
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -1,3 +1,7 @@
2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/ahci.c: Give more time for AHCI request.
2013-03-25 Vladimir Serbinenko <phcoder@gmail.com> 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/menu.c: Wait if there were errors shown at "boot" * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
+1 -1
View File
@@ -619,7 +619,7 @@ grub_ahci_readwrite_real (struct grub_ahci_device *dev,
grub_dprintf ("ahci", "AHCI tfd = %x\n", grub_dprintf ("ahci", "AHCI tfd = %x\n",
dev->hba->ports[dev->port].task_file_data); dev->hba->ports[dev->port].task_file_data);
endtime = grub_get_time_ms () + (spinup ? 10000 : 1000); endtime = grub_get_time_ms () + (spinup ? 10000 : 5000);
while ((dev->hba->ports[dev->port].command_issue & 1)) while ((dev->hba->ports[dev->port].command_issue & 1))
if (grub_get_time_ms () > endtime) if (grub_get_time_ms () > endtime)
{ {