diff options
| -rw-r--r-- | drivers/pci/pci-acpi.c | 6 | ||||
| -rw-r--r-- | drivers/pci/pci.c | 10 | ||||
| -rw-r--r-- | drivers/pci/pcie/pme.c | 2 | ||||
| -rw-r--r-- | drivers/pci/probe.c | 1 | ||||
| -rw-r--r-- | include/linux/pci.h | 1 |
5 files changed, 16 insertions, 4 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index 6c15d6a96935..dbdc5f7e2b29 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c | |||
| @@ -186,8 +186,8 @@ static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state) | |||
| 186 | [PCI_D0] = ACPI_STATE_D0, | 186 | [PCI_D0] = ACPI_STATE_D0, |
| 187 | [PCI_D1] = ACPI_STATE_D1, | 187 | [PCI_D1] = ACPI_STATE_D1, |
| 188 | [PCI_D2] = ACPI_STATE_D2, | 188 | [PCI_D2] = ACPI_STATE_D2, |
| 189 | [PCI_D3hot] = ACPI_STATE_D3, | 189 | [PCI_D3hot] = ACPI_STATE_D3_COLD, |
| 190 | [PCI_D3cold] = ACPI_STATE_D3 | 190 | [PCI_D3cold] = ACPI_STATE_D3_COLD, |
| 191 | }; | 191 | }; |
| 192 | int error = -EINVAL; | 192 | int error = -EINVAL; |
| 193 | 193 | ||
| @@ -211,7 +211,7 @@ static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state) | |||
| 211 | 211 | ||
| 212 | if (!error) | 212 | if (!error) |
| 213 | dev_info(&dev->dev, "power state changed by ACPI to %s\n", | 213 | dev_info(&dev->dev, "power state changed by ACPI to %s\n", |
| 214 | pci_power_name(state)); | 214 | acpi_power_state_string(state_conv[state])); |
| 215 | 215 | ||
| 216 | return error; | 216 | return error; |
| 217 | } | 217 | } |
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index e5f4e55d407d..709791b70ca0 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
| @@ -1335,6 +1335,16 @@ int __weak pcibios_add_device (struct pci_dev *dev) | |||
| 1335 | } | 1335 | } |
| 1336 | 1336 | ||
| 1337 | /** | 1337 | /** |
| 1338 | * pcibios_release_device - provide arch specific hooks when releasing device dev | ||
| 1339 | * @dev: the PCI device being released | ||
| 1340 | * | ||
| 1341 | * Permits the platform to provide architecture specific functionality when | ||
| 1342 | * devices are released. This is the default implementation. Architecture | ||
| 1343 | * implementations can override this. | ||
| 1344 | */ | ||
| 1345 | void __weak pcibios_release_device(struct pci_dev *dev) {} | ||
| 1346 | |||
| 1347 | /** | ||
| 1338 | * pcibios_disable_device - disable arch specific PCI resources for device dev | 1348 | * pcibios_disable_device - disable arch specific PCI resources for device dev |
| 1339 | * @dev: the PCI device to disable | 1349 | * @dev: the PCI device to disable |
| 1340 | * | 1350 | * |
diff --git a/drivers/pci/pcie/pme.c b/drivers/pci/pcie/pme.c index 795db1f9d50c..e56e594ce112 100644 --- a/drivers/pci/pcie/pme.c +++ b/drivers/pci/pcie/pme.c | |||
| @@ -408,7 +408,7 @@ static int pcie_pme_resume(struct pcie_device *srv) | |||
| 408 | 408 | ||
| 409 | /** | 409 | /** |
| 410 | * pcie_pme_remove - Prepare PCIe PME service device for removal. | 410 | * pcie_pme_remove - Prepare PCIe PME service device for removal. |
| 411 | * @srv - PCIe service device to resume. | 411 | * @srv - PCIe service device to remove. |
| 412 | */ | 412 | */ |
| 413 | static void pcie_pme_remove(struct pcie_device *srv) | 413 | static void pcie_pme_remove(struct pcie_device *srv) |
| 414 | { | 414 | { |
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index fe5b50bd7536..d0c33aac768e 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
| @@ -1151,6 +1151,7 @@ static void pci_release_dev(struct device *dev) | |||
| 1151 | pci_dev = to_pci_dev(dev); | 1151 | pci_dev = to_pci_dev(dev); |
| 1152 | pci_release_capabilities(pci_dev); | 1152 | pci_release_capabilities(pci_dev); |
| 1153 | pci_release_of_node(pci_dev); | 1153 | pci_release_of_node(pci_dev); |
| 1154 | pcibios_release_device(pci_dev); | ||
| 1154 | kfree(pci_dev); | 1155 | kfree(pci_dev); |
| 1155 | } | 1156 | } |
| 1156 | 1157 | ||
diff --git a/include/linux/pci.h b/include/linux/pci.h index 3a24e4ff3248..8f170e9073a5 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -1643,6 +1643,7 @@ void pcibios_set_master(struct pci_dev *dev); | |||
| 1643 | int pcibios_set_pcie_reset_state(struct pci_dev *dev, | 1643 | int pcibios_set_pcie_reset_state(struct pci_dev *dev, |
| 1644 | enum pcie_reset_state state); | 1644 | enum pcie_reset_state state); |
| 1645 | int pcibios_add_device(struct pci_dev *dev); | 1645 | int pcibios_add_device(struct pci_dev *dev); |
| 1646 | void pcibios_release_device(struct pci_dev *dev); | ||
| 1646 | 1647 | ||
| 1647 | #ifdef CONFIG_PCI_MMCONFIG | 1648 | #ifdef CONFIG_PCI_MMCONFIG |
| 1648 | void __init pci_mmcfg_early_init(void); | 1649 | void __init pci_mmcfg_early_init(void); |
