Blame SOURCES/0060-grub-core-disk-ahci.c-Ignore-NPORTS-field-and-rely-o.patch

a85e8e
From d92788a92466b22fb10c2d3f6c9c68d0002227b3 Mon Sep 17 00:00:00 2001
a85e8e
From: Vladimir Serbinenko <phcoder@gmail.com>
a85e8e
Date: Thu, 20 Feb 2014 10:11:43 +0100
a85e8e
Subject: [PATCH 060/260] * grub-core/disk/ahci.c: Ignore NPORTS field and rely
a85e8e
 on PI exclusively.
a85e8e
a85e8e
---
a85e8e
 ChangeLog             | 5 +++++
a85e8e
 grub-core/disk/ahci.c | 2 +-
a85e8e
 2 files changed, 6 insertions(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/ChangeLog b/ChangeLog
a85e8e
index 523763158..be41aa51f 100644
a85e8e
--- a/ChangeLog
a85e8e
+++ b/ChangeLog
a85e8e
@@ -1,3 +1,8 @@
a85e8e
+2014-02-20  Vladimir Serbinenko  <phcoder@gmail.com>
a85e8e
+
a85e8e
+	* grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
a85e8e
+	exclusively.
a85e8e
+
a85e8e
 2014-02-04  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
a85e8e
 
a85e8e
 	Add bootpath parser for open firmware.
a85e8e
diff --git a/grub-core/disk/ahci.c b/grub-core/disk/ahci.c
a85e8e
index 5e4a6397a..89365cd09 100644
a85e8e
--- a/grub-core/disk/ahci.c
a85e8e
+++ b/grub-core/disk/ahci.c
a85e8e
@@ -322,7 +322,7 @@ grub_ahci_pciinit (grub_pci_device_t dev,
a85e8e
 
a85e8e
   grub_dprintf ("ahci", "GLC:%x\n", hba->global_control);
a85e8e
 
a85e8e
-  nports = (hba->cap & GRUB_AHCI_HBA_CAP_NPORTS_MASK) + 1;
a85e8e
+  nports = (GRUB_AHCI_HBA_CAP_NPORTS_MASK) + 1;
a85e8e
 
a85e8e
   grub_dprintf ("ahci", "%d AHCI ports, PI = 0x%x\n", nports,
a85e8e
 		hba->ports_implemented);
a85e8e
-- 
a85e8e
2.13.0
a85e8e