aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-09-23 19:58:08 -0400
committerBjorn Helgaas <bhelgaas@google.com>2013-09-23 19:58:08 -0400
commit3ba8b7c542cd06eafbd24f266a00623b89577d9d (patch)
tree4d14526d61ff258d0613fb5f93994228a13bfff0 /drivers/pci
parent4a10c2ac2f368583138b774ca41fac4207911983 (diff)
parent955f14b4ed0648da12f0a7011f94150b8982a5c2 (diff)
Merge branch 'pci/bjorn-osc' into next
* pci/bjorn-osc: PCI/ACPI: Decode _OSC bitmasks symbolically PCI/ACPI: Separate out _OSC "we don't support enough services" path PCI/ACPI: Separate out _OSC "PCIe port services disabled" path PCI/ACPI: Skip _OSC control tests if _OSC support call failed PCI/ACPI: Run _OSC only once for OSPM feature support PCI/ACPI: Split _OSC "support" and "control" flags into separate variables PCI/ACPI: Move _OSC stuff from acpi_pci_root_add() to negotiate_os_control() PCI/ACPI: Drop unnecessary _OSC existence tests PCI/ACPI: Name _OSC #defines more consistently ACPI: Write OSC_PCI_CONTROL_MASKS like OSC_PCI_SUPPORT_MASKS ACPI: Remove unused OSC_PCI_NATIVE_HOTPLUG ACPI: Tidy acpi_run_osc() declarations ACPI: Rename OSC_QUERY_TYPE to OSC_QUERY_DWORD ACPI: Write _OSC bit field definitions in hex
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/acpi_pcihp.c2
-rw-r--r--drivers/pci/hotplug/shpchp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/acpi_pcihp.c b/drivers/pci/hotplug/acpi_pcihp.c
index 2a47e82821da..f8140164ec0b 100644
--- a/drivers/pci/hotplug/acpi_pcihp.c
+++ b/drivers/pci/hotplug/acpi_pcihp.c
@@ -338,7 +338,7 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev, u32 flags)
338 acpi_handle chandle, handle; 338 acpi_handle chandle, handle;
339 struct acpi_buffer string = { ACPI_ALLOCATE_BUFFER, NULL }; 339 struct acpi_buffer string = { ACPI_ALLOCATE_BUFFER, NULL };
340 340
341 flags &= OSC_SHPC_NATIVE_HP_CONTROL; 341 flags &= OSC_PCI_SHPC_NATIVE_HP_CONTROL;
342 if (!flags) { 342 if (!flags) {
343 err("Invalid flags %u specified!\n", flags); 343 err("Invalid flags %u specified!\n", flags);
344 return -EINVAL; 344 return -EINVAL;
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h
index e260f207a90e..d876e4b3c6a9 100644
--- a/drivers/pci/hotplug/shpchp.h
+++ b/drivers/pci/hotplug/shpchp.h
@@ -191,7 +191,7 @@ static inline const char *slot_name(struct slot *slot)
191#include <linux/pci-acpi.h> 191#include <linux/pci-acpi.h>
192static inline int get_hp_hw_control_from_firmware(struct pci_dev *dev) 192static inline int get_hp_hw_control_from_firmware(struct pci_dev *dev)
193{ 193{
194 u32 flags = OSC_SHPC_NATIVE_HP_CONTROL; 194 u32 flags = OSC_PCI_SHPC_NATIVE_HP_CONTROL;
195 return acpi_get_hp_hw_control_from_firmware(dev, flags); 195 return acpi_get_hp_hw_control_from_firmware(dev, flags);
196} 196}
197#else 197#else