Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1f4f59d authored by Sitsofe Wheeler's avatar Sitsofe Wheeler Committed by Jesse Barnes
Browse files

PCI: Fix pcie_aspm=force



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.

Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarSitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent bc45eb89
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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,
		pci_read_config_dword(child_dev, child_pos + PCI_EXP_DEVCAP,
			&reg32);
			&reg32);
		if (!(reg32 & PCI_EXP_DEVCAP_RBER && !aspm_force)) {
		if (!(reg32 & PCI_EXP_DEVCAP_RBER) && !aspm_force) {
			printk("Pre-1.1 PCIe device detected, "
			printk("Pre-1.1 PCIe device detected, "
				"disable ASPM for %s. It can be enabled forcedly"
				"disable ASPM for %s. It can be enabled forcedly"
				" with 'pcie_aspm=force'\n", pci_name(pdev));
				" with 'pcie_aspm=force'\n", pci_name(pdev));