dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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