diff options
author | Kristen Accardi <kristen.c.accardi@intel.com> | 2005-10-18 20:21:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 18:37:01 -0400 |
commit | 8e5dce35221850759671b2847a2e51030f7626bd (patch) | |
tree | 209dba22e714697336158ef43a2460068a65566b /drivers | |
parent | 5457b6a6013516a73b8f48ec1adb9984b577a5c1 (diff) |
[PATCH] acpiphp: allocate resources for adapters with bridges
Allocate resources for adapters with bridges on them.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index 424e7de181ae..8e21f6ab89a1 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -58,6 +58,9 @@ static LIST_HEAD(bridge_list); | |||
58 | 58 | ||
59 | static void handle_hotplug_event_bridge (acpi_handle, u32, void *); | 59 | static void handle_hotplug_event_bridge (acpi_handle, u32, void *); |
60 | static void handle_hotplug_event_func (acpi_handle, u32, void *); | 60 | static void handle_hotplug_event_func (acpi_handle, u32, void *); |
61 | static void acpiphp_sanitize_bus(struct pci_bus *bus); | ||
62 | static void acpiphp_set_hpp_values(acpi_handle handle, struct pci_bus *bus); | ||
63 | |||
61 | 64 | ||
62 | /* | 65 | /* |
63 | * initialization & terminatation routines | 66 | * initialization & terminatation routines |
@@ -796,8 +799,13 @@ static int enable_device(struct acpiphp_slot *slot) | |||
796 | } | 799 | } |
797 | } | 800 | } |
798 | 801 | ||
802 | pci_bus_size_bridges(bus); | ||
799 | pci_bus_assign_resources(bus); | 803 | pci_bus_assign_resources(bus); |
804 | acpiphp_sanitize_bus(bus); | ||
805 | pci_enable_bridges(bus); | ||
800 | pci_bus_add_devices(bus); | 806 | pci_bus_add_devices(bus); |
807 | acpiphp_set_hpp_values(DEVICE_ACPI_HANDLE(&bus->self->dev), bus); | ||
808 | acpiphp_configure_ioapics(DEVICE_ACPI_HANDLE(&bus->self->dev)); | ||
801 | 809 | ||
802 | /* associate pci_dev to our representation */ | 810 | /* associate pci_dev to our representation */ |
803 | list_for_each (l, &slot->funcs) { | 811 | list_for_each (l, &slot->funcs) { |