]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 20 Feb 2014 09:11:43 +0000 (10:11 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 20 Feb 2014 09:11:43 +0000 (10:11 +0100)
exclusively.

ChangeLog
grub-core/disk/ahci.c

index 07caf46f05f62e7e6dda59256e8a20b628ba3df9..aec689d5ddbf857d931da04e453796141e7eec70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-20  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
+       exclusively.
+
 2014-02-04  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
 
        Add bootpath parser for open firmware.
index 5e4a6397a4917005d01d9f11432affc1ffe06356..89365cd0925fc567f1cfb4ff3b83645fcea6d5bf 100644 (file)
@@ -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);