From: Vladimir Serbinenko Date: Thu, 20 Feb 2014 09:11:43 +0000 (+0100) Subject: * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI X-Git-Tag: 2.02-beta3~663 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0949e374731e3f36c279774cd08fadd6553dcee;p=thirdparty%2Fgrub.git * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI exclusively. --- diff --git a/ChangeLog b/ChangeLog index 07caf46f0..aec689d5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-02-20 Vladimir Serbinenko + + * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI + exclusively. + 2014-02-04 Paulo Flabiano Smorigo Add bootpath parser for open firmware. diff --git a/grub-core/disk/ahci.c b/grub-core/disk/ahci.c index 5e4a6397a..89365cd09 100644 --- a/grub-core/disk/ahci.c +++ b/grub-core/disk/ahci.c @@ -322,7 +322,7 @@ grub_ahci_pciinit (grub_pci_device_t dev, grub_dprintf ("ahci", "GLC:%x\n", hba->global_control); - nports = (hba->cap & GRUB_AHCI_HBA_CAP_NPORTS_MASK) + 1; + nports = (GRUB_AHCI_HBA_CAP_NPORTS_MASK) + 1; grub_dprintf ("ahci", "%d AHCI ports, PI = 0x%x\n", nports, hba->ports_implemented);