Accept ports in state 1
This commit is contained in:
parent
c76ae9b4da
commit
9797178671
1 changed files with 3 additions and 1 deletions
|
@ -220,13 +220,15 @@ grub_ahci_pciinit (grub_pci_device_t dev,
|
||||||
struct grub_ahci_device *adev;
|
struct grub_ahci_device *adev;
|
||||||
struct grub_pci_dma_chunk *command_list;
|
struct grub_pci_dma_chunk *command_list;
|
||||||
struct grub_pci_dma_chunk *command_table;
|
struct grub_pci_dma_chunk *command_table;
|
||||||
|
grub_uint32_t st;
|
||||||
|
|
||||||
if (!(hba->ports_implemented & (1 << i)))
|
if (!(hba->ports_implemented & (1 << i)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
grub_dprintf ("ahci", "status %d:%x\n", i, hba->ports[i].status);
|
grub_dprintf ("ahci", "status %d:%x\n", i, hba->ports[i].status);
|
||||||
/* FIXME: support hotplugging. */
|
/* FIXME: support hotplugging. */
|
||||||
if ((hba->ports[i].status & 0xf) != 0x3)
|
st = hba->ports[i].status;
|
||||||
|
if ((st & 0xf) != 0x3 && (st & 0xf) != 0x1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
command_list = grub_memalign_dma32 (1024,
|
command_list = grub_memalign_dma32 (1024,
|
||||||
|
|
Loading…
Reference in a new issue