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

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