]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Accept ports in state 1
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 25 Dec 2010 17:02:43 +0000 (18:02 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 25 Dec 2010 17:02:43 +0000 (18:02 +0100)
grub-core/disk/ahci.c

index 61ca7e4d6ce444f6ef436068b0d948d3503cf6bd..b348ce3d033b62c509e3e0fbaf482b4281b3ce5b 100644 (file)
@@ -220,13 +220,15 @@ grub_ahci_pciinit (grub_pci_device_t dev,
       struct grub_ahci_device *adev;
       struct grub_pci_dma_chunk *command_list;
       struct grub_pci_dma_chunk *command_table;
+      grub_uint32_t st;
 
       if (!(hba->ports_implemented & (1 << i)))
        continue;
 
       grub_dprintf ("ahci", "status %d:%x\n", i, hba->ports[i].status);
       /* FIXME: support hotplugging.  */
-      if ((hba->ports[i].status & 0xf) != 0x3)
+      st = hba->ports[i].status;
+      if ((st & 0xf) != 0x3 && (st & 0xf) != 0x1)
        continue;
 
       command_list = grub_memalign_dma32 (1024,