aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/acpi_pcihp.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-09-14 18:35:35 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-14 20:39:12 -0400
commite81995bb1c0077a312cb621abc406a36f65a986a (patch)
tree9a451882e0c1528b4fbd9781605e0850d7bcb693 /drivers/pci/hotplug/acpi_pcihp.c
parent11876e52e9148bf923795d6fcf8abed7f3662aaa (diff)
PCI hotplug: acpiphp: use generic pci_configure_slot()
Use the generic pci_configure_slot() rather than the acpiphp-specific decode_hpp() and program_hpp(). Unlike the previous acpiphp-specific code, pci_configure_slot() programs PCIe settings when an _HPX method provides them, so acpiphp-managed PCIe devices can now be configured. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug/acpi_pcihp.c')
-rw-r--r--drivers/pci/hotplug/acpi_pcihp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/acpi_pcihp.c b/drivers/pci/hotplug/acpi_pcihp.c
index 14d2d8a01f68..ee24de1c5fae 100644
--- a/drivers/pci/hotplug/acpi_pcihp.c
+++ b/drivers/pci/hotplug/acpi_pcihp.c
@@ -322,13 +322,12 @@ static acpi_status acpi_run_oshp(acpi_handle handle)
322 return status; 322 return status;
323} 323}
324 324
325/* acpi_get_hp_params_from_firmware 325/* pci_get_hp_params
326 * 326 *
327 * @dev - the pci_dev for which we want parameters 327 * @dev - the pci_dev for which we want parameters
328 * @hpp - allocated by the caller 328 * @hpp - allocated by the caller
329 */ 329 */
330int acpi_get_hp_params_from_firmware(struct pci_dev *dev, 330int pci_get_hp_params(struct pci_dev *dev, struct hotplug_params *hpp)
331 struct hotplug_params *hpp)
332{ 331{
333 acpi_status status; 332 acpi_status status;
334 acpi_handle handle, phandle; 333 acpi_handle handle, phandle;
@@ -345,7 +344,7 @@ int acpi_get_hp_params_from_firmware(struct pci_dev *dev,
345 * _HPP settings apply to all child buses, until another _HPP is 344 * _HPP settings apply to all child buses, until another _HPP is
346 * encountered. If we don't find an _HPP for the input pci dev, 345 * encountered. If we don't find an _HPP for the input pci dev,
347 * look for it in the parent device scope since that would apply to 346 * look for it in the parent device scope since that would apply to
348 * this pci dev. If we don't find any _HPP, use hardcoded defaults 347 * this pci dev.
349 */ 348 */
350 while (handle) { 349 while (handle) {
351 status = acpi_run_hpx(handle, hpp); 350 status = acpi_run_hpx(handle, hpp);
@@ -363,7 +362,7 @@ int acpi_get_hp_params_from_firmware(struct pci_dev *dev,
363 } 362 }
364 return -ENODEV; 363 return -ENODEV;
365} 364}
366EXPORT_SYMBOL_GPL(acpi_get_hp_params_from_firmware); 365EXPORT_SYMBOL_GPL(pci_get_hp_params);
367 366
368/** 367/**
369 * acpi_get_hp_hw_control_from_firmware 368 * acpi_get_hp_hw_control_from_firmware