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

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