Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242603
b: refs/heads/master
c: eca6731
h: refs/heads/master
i:
  242601: 279c998
  242599: 4f54290
v: v3
  • Loading branch information
Naga Chumbalkar authored and Jesse Barnes committed Mar 21, 2011
1 parent 48b74a8 commit a81741a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbfa306a1e5d9618231aa0de3d52a8eb1219d0c3
refs/heads/master: eca67315e0e0d5fd91264d79c88694006dbc7d31
9 changes: 7 additions & 2 deletions trunk/drivers/acpi/pci_root.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <linux/pm_runtime.h>
#include <linux/pci.h>
#include <linux/pci-acpi.h>
#include <linux/pci-aspm.h>
#include <linux/acpi.h>
#include <linux/slab.h>
#include <acpi/acpi_bus.h>
Expand Down Expand Up @@ -591,12 +592,16 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)

status = acpi_pci_osc_control_set(device->handle, &flags,
OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL);
if (ACPI_SUCCESS(status))
if (ACPI_SUCCESS(status)) {
dev_info(root->bus->bridge,
"ACPI _OSC control (0x%02x) granted\n", flags);
else
} else {
dev_dbg(root->bus->bridge,
"ACPI _OSC request failed (code %d)\n", status);
printk(KERN_INFO "Unable to assume _OSC PCIe control. "
"Disabling ASPM\n");
pcie_no_aspm();
}
}

pci_acpi_add_bus_pm_notifier(device, root->bus);
Expand Down
5 changes: 1 addition & 4 deletions trunk/drivers/pci/pcie/portdrv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/slab.h>
#include <linux/pcieport_if.h>
#include <linux/aer.h>
#include <linux/pci-aspm.h>

#include "../pci.h"
#include "portdrv.h"
Expand Down Expand Up @@ -356,10 +355,8 @@ int pcie_port_device_register(struct pci_dev *dev)

/* Get and check PCI Express port services */
capabilities = get_port_device_capability(dev);
if (!capabilities) {
pcie_no_aspm();
if (!capabilities)
return 0;
}

pci_set_master(dev);
/*
Expand Down

0 comments on commit a81741a

Please sign in to comment.