[PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sitsofe Wheeler
Date: Tuesday, September 16, 2008 - 6:27 am

From: Sitsofe Wheeler <sitsofe@yahoo.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@yahoo.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,
 			&reg32);
-		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));



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force, Sitsofe Wheeler, (Tue Sep 16, 6:27 am)
Re: [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force, Alan Cox, (Tue Sep 16, 7:08 am)
Re: [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force, Jesse Barnes, (Tue Sep 16, 9:19 am)
Re: [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force, Jesse Barnes, (Tue Sep 23, 11:53 am)