Re: [RFC PATCH 2/3] ACPIHP: ACPI system device hotplug slot enumerator

2012-08-05 Thread Jiang Liu
On 2012-8-5 4:14, Yinghai Lu wrote: > On Sat, Jul 28, 2012 at 4:42 AM, Jiang Liu wrote: >> The first is an ACPI hotplug slot enumerator, which enumerates ACPI hotplug >> slots on load and provides callbacks to manage those hotplug slots. >> An ACPI hotplug slot is an abstraction of receptacles, wh

Re: [RFC PATCH 2/3] ACPIHP: ACPI system device hotplug slot enumerator

2012-08-04 Thread Yinghai Lu
On Sat, Jul 28, 2012 at 4:42 AM, Jiang Liu wrote: > The first is an ACPI hotplug slot enumerator, which enumerates ACPI hotplug > slots on load and provides callbacks to manage those hotplug slots. > An ACPI hotplug slot is an abstraction of receptacles, where a group of > system devices could be

Re: [RFC PATCH 2/3] ACPIHP: ACPI system device hotplug slot enumerator

2012-08-04 Thread Jiang Liu
>> +/* >> + * Guess type of a hotplug slot according to child devices connecting to it. >> + */ >> +static enum acpihp_slot_type __init acpihp_enum_get_slot_type(u32 dev_types) >> +{ >> +BUG_ON(dev_types > 15); >> + >> +switch (dev_types) { >> +case 0: >> +/* Generic CONTAIN

Re: [RFC PATCH 2/3] ACPIHP: ACPI system device hotplug slot enumerator

2012-08-02 Thread Taku Izumi
On Sat, 28 Jul 2012 19:42:51 +0800 Jiang Liu wrote: > The first is an ACPI hotplug slot enumerator, which enumerates ACPI hotplug > slots on load and provides callbacks to manage those hotplug slots. > An ACPI hotplug slot is an abstraction of receptacles, where a group of > system devices could