aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-09-05 17:07:39 -0400
committerBjorn Helgaas <bhelgaas@google.com>2013-09-23 19:40:45 -0400
commit7dab9ef4f0823072a3c9afdb3b373c9f2f38848b (patch)
treed57293c7b2705bd34812c073a2919904c194d359 /drivers/acpi
parent335b15097d571007b125eb9fe4ef1f84e61bd31d (diff)
PCI/ACPI: Name _OSC #defines more consistently
Make PCI Host Bridge _OSC #defines more consistent. No functional change. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/pci_root.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index 323afd7ccfbf..28dd55509789 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -49,10 +49,10 @@ static int acpi_pci_root_add(struct acpi_device *device,
49 const struct acpi_device_id *not_used); 49 const struct acpi_device_id *not_used);
50static void acpi_pci_root_remove(struct acpi_device *device); 50static void acpi_pci_root_remove(struct acpi_device *device);
51 51
52#define ACPI_PCIE_REQ_SUPPORT (OSC_EXT_PCI_CONFIG_SUPPORT \ 52#define ACPI_PCIE_REQ_SUPPORT (OSC_PCI_EXT_CONFIG_SUPPORT \
53 | OSC_ACTIVE_STATE_PWR_SUPPORT \ 53 | OSC_PCI_ASPM_SUPPORT \
54 | OSC_CLOCK_PWR_CAPABILITY_SUPPORT \ 54 | OSC_PCI_CLOCK_PM_SUPPORT \
55 | OSC_MSI_SUPPORT) 55 | OSC_PCI_MSI_SUPPORT)
56 56
57static const struct acpi_device_id root_device_ids[] = { 57static const struct acpi_device_id root_device_ids[] = {
58 {"PNP0A03", 0}, 58 {"PNP0A03", 0},
@@ -439,13 +439,12 @@ static int acpi_pci_root_add(struct acpi_device *device,
439 acpi_pci_osc_support(root, flags); 439 acpi_pci_osc_support(root, flags);
440 440
441 if (pci_ext_cfg_avail()) 441 if (pci_ext_cfg_avail())
442 flags |= OSC_EXT_PCI_CONFIG_SUPPORT; 442 flags |= OSC_PCI_EXT_CONFIG_SUPPORT;
443 if (pcie_aspm_support_enabled()) { 443 if (pcie_aspm_support_enabled()) {
444 flags |= OSC_ACTIVE_STATE_PWR_SUPPORT | 444 flags |= OSC_PCI_ASPM_SUPPORT | OSC_PCI_CLOCK_PM_SUPPORT;
445 OSC_CLOCK_PWR_CAPABILITY_SUPPORT;
446 } 445 }
447 if (pci_msi_enabled()) 446 if (pci_msi_enabled())
448 flags |= OSC_MSI_SUPPORT; 447 flags |= OSC_PCI_MSI_SUPPORT;
449 if (flags != base_flags) { 448 if (flags != base_flags) {
450 status = acpi_pci_osc_support(root, flags); 449 status = acpi_pci_osc_support(root, flags);
451 if (ACPI_FAILURE(status)) { 450 if (ACPI_FAILURE(status)) {
@@ -458,7 +457,7 @@ static int acpi_pci_root_add(struct acpi_device *device,
458 457
459 if (!pcie_ports_disabled 458 if (!pcie_ports_disabled
460 && (flags & ACPI_PCIE_REQ_SUPPORT) == ACPI_PCIE_REQ_SUPPORT) { 459 && (flags & ACPI_PCIE_REQ_SUPPORT) == ACPI_PCIE_REQ_SUPPORT) {
461 flags = OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL 460 flags = OSC_PCI_EXPRESS_CAPABILITY_CONTROL
462 | OSC_PCI_EXPRESS_NATIVE_HP_CONTROL 461 | OSC_PCI_EXPRESS_NATIVE_HP_CONTROL
463 | OSC_PCI_EXPRESS_PME_CONTROL; 462 | OSC_PCI_EXPRESS_PME_CONTROL;
464 463
@@ -474,7 +473,7 @@ static int acpi_pci_root_add(struct acpi_device *device,
474 "Requesting ACPI _OSC control (0x%02x)\n", flags); 473 "Requesting ACPI _OSC control (0x%02x)\n", flags);
475 474
476 status = acpi_pci_osc_control_set(handle, &flags, 475 status = acpi_pci_osc_control_set(handle, &flags,
477 OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL); 476 OSC_PCI_EXPRESS_CAPABILITY_CONTROL);
478 if (ACPI_SUCCESS(status)) { 477 if (ACPI_SUCCESS(status)) {
479 dev_info(&device->dev, 478 dev_info(&device->dev,
480 "ACPI _OSC control (0x%02x) granted\n", flags); 479 "ACPI _OSC control (0x%02x) granted\n", flags);