ahci: Ensure that bus mastering is set.
Fixes ahci_test failing on several platforms.
This commit is contained in:
parent
d3b464a7c0
commit
72fc110d95
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ grub_ahci_pciinit (grub_pci_device_t dev,
|
|||
|
||||
addr = grub_pci_make_address (dev, GRUB_PCI_REG_COMMAND);
|
||||
grub_pci_write_word (addr, grub_pci_read_word (addr)
|
||||
| GRUB_PCI_COMMAND_MEM_ENABLED);
|
||||
| GRUB_PCI_COMMAND_MEM_ENABLED | GRUB_PCI_COMMAND_BUS_MASTER);
|
||||
|
||||
hba = grub_pci_device_map_range (dev, bar & GRUB_PCI_ADDR_MEM_MASK,
|
||||
sizeof (*hba));
|
||||
|
|
Loading…
Reference in a new issue