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

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