[PATCH 11/30] ACPI / hotplug / PCI: Register all devices under the given bridge

2013-07-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Rework register_slot() to create a struct acpiphp_func object for every function it is called for and to create acpiphp slots for all of them. Although acpiphp_register_hotplug_slot() is only called for the slots whose functions are identified as "ejectable", so that user

Re: [RFC][PATCH 11/30] ACPI / hotplug / PCI: Register all devices under the given bridge

2013-07-12 Thread Mika Westerberg
On Fri, Jul 12, 2013 at 02:54:20PM +0300, Mika Westerberg wrote: > On Fri, Jul 12, 2013 at 01:50:29AM +0200, Rafael J. Wysocki wrote: > > @@ -1210,6 +1125,35 @@ void acpiphp_enumerate_slots(struct pci_ > > */ > > get_device(&bus->dev); > > > > + if (!pci_is_root_bus(bridge->pci_bus)) {

Re: [RFC][PATCH 11/30] ACPI / hotplug / PCI: Register all devices under the given bridge

2013-07-12 Thread Mika Westerberg
On Fri, Jul 12, 2013 at 01:50:29AM +0200, Rafael J. Wysocki wrote: > @@ -1210,6 +1125,35 @@ void acpiphp_enumerate_slots(struct pci_ >*/ > get_device(&bus->dev); > > + if (!pci_is_root_bus(bridge->pci_bus)) { > + struct acpiphp_context *context; > + > + /

[RFC][PATCH 11/30] ACPI / hotplug / PCI: Register all devices under the given bridge

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Rework register_slot() to create a struct acpiphp_func object for every function it is called for and to create acpiphp slots for all of them. Although acpiphp_register_hotplug_slot() is only called for the slots whose functions are identified as "ejectable", so that user