[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1221571633.4060.19.camel@galvatron>
Date: Tue, 16 Sep 2008 14:27:13 +0100
From: Sitsofe Wheeler <sitsofe@...oo.com>
To: Jesse Barnes <jbarnes@...tuousgeek.org>
Cc: "Li, Shaohua" <shaohua.li@...el.com>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force
From: Sitsofe Wheeler <sitsofe@...oo.com>
pcie_aspm=force did not work because aspm_force was being double negated
leading to the sanity check failing. Moving a bracket should fix this.
Signed-off-by: Sitsofe Wheeler <sitsofe@...oo.com>
---
drivers/pci/pcie/aspm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 9a7c9e1..851f5b8 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -527,7 +527,7 @@ static int pcie_aspm_sanity_check(struct pci_dev *pdev)
*/
pci_read_config_dword(child_dev, child_pos + PCI_EXP_DEVCAP,
®32);
- if (!(reg32 & PCI_EXP_DEVCAP_RBER && !aspm_force)) {
+ if (!(reg32 & PCI_EXP_DEVCAP_RBER) && !aspm_force) {
printk("Pre-1.1 PCIe device detected, "
"disable ASPM for %s. It can be enabled forcedly"
" with 'pcie_aspm=force'\n", pci_name(pdev));
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists