Commit 8e5dce35 authored by Kristen Accardi's avatar Kristen Accardi Committed by Greg Kroah-Hartman

[PATCH] acpiphp: allocate resources for adapters with bridges

Allocate resources for adapters with bridges on them.
Signed-off-by: default avatarKristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5457b6a6
...@@ -58,6 +58,9 @@ static LIST_HEAD(bridge_list); ...@@ -58,6 +58,9 @@ static LIST_HEAD(bridge_list);
static void handle_hotplug_event_bridge (acpi_handle, u32, void *); static void handle_hotplug_event_bridge (acpi_handle, u32, void *);
static void handle_hotplug_event_func (acpi_handle, u32, void *); static void handle_hotplug_event_func (acpi_handle, u32, void *);
static void acpiphp_sanitize_bus(struct pci_bus *bus);
static void acpiphp_set_hpp_values(acpi_handle handle, struct pci_bus *bus);
/* /*
* initialization & terminatation routines * initialization & terminatation routines
...@@ -796,8 +799,13 @@ static int enable_device(struct acpiphp_slot *slot) ...@@ -796,8 +799,13 @@ static int enable_device(struct acpiphp_slot *slot)
} }
} }
pci_bus_size_bridges(bus);
pci_bus_assign_resources(bus); pci_bus_assign_resources(bus);
acpiphp_sanitize_bus(bus);
pci_enable_bridges(bus);
pci_bus_add_devices(bus); pci_bus_add_devices(bus);
acpiphp_set_hpp_values(DEVICE_ACPI_HANDLE(&bus->self->dev), bus);
acpiphp_configure_ioapics(DEVICE_ACPI_HANDLE(&bus->self->dev));
/* associate pci_dev to our representation */ /* associate pci_dev to our representation */
list_for_each (l, &slot->funcs) { list_for_each (l, &slot->funcs) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment