Re: [PATCH V6 10/11] ACPI: use platform bus as the default bus for _HID enumeration

2014-05-22 Thread Mika Westerberg
On Thu, May 15, 2014 at 02:44:15PM +0800, Zhang Rui wrote: > +static void acpi_do_default_enumeration(struct acpi_device *device) > +{ > + /* > + * Do not do enumeration for device object that has been/will be > + * enumerated by its parent. > + */ > + if (device->parent &&

Re: [PATCH V6 10/11] ACPI: use platform bus as the default bus for _HID enumeration

2014-05-22 Thread Mika Westerberg
On Thu, May 15, 2014 at 02:44:15PM +0800, Zhang Rui wrote: +static void acpi_do_default_enumeration(struct acpi_device *device) +{ + /* + * Do not do enumeration for device object that has been/will be + * enumerated by its parent. + */ + if (device-parent

[PATCH V6 10/11] ACPI: use platform bus as the default bus for _HID enumeration

2014-05-15 Thread Zhang Rui
Because of the growing demand for enumerating ACPI devices to platform bus, this patch changes the code to enumerate ACPI devices to platform bus by default, if the device 1. has _HID. 2. does not have a scan handler attached. 3. will not be enumerated by its parent. Signed-off-by: Zhang Rui ---

[PATCH V6 10/11] ACPI: use platform bus as the default bus for _HID enumeration

2014-05-15 Thread Zhang Rui
Because of the growing demand for enumerating ACPI devices to platform bus, this patch changes the code to enumerate ACPI devices to platform bus by default, if the device 1. has _HID. 2. does not have a scan handler attached. 3. will not be enumerated by its parent. Signed-off-by: Zhang Rui