Re: [RFC PATCH 2/8] PNPACPI: use whilte list for pnpacpi device enumeration

2014-03-09 Thread Zhang Rui
On Sun, 2014-03-09 at 18:49 +0100, Rafael J. Wysocki wrote: > On Sunday, March 09, 2014 01:29:30 PM Zhang Rui wrote: > > On Fri, 2014-03-07 at 02:44 +0100, Rafael J. Wysocki wrote: > > > On Wednesday, February 26, 2014 05:11:08 PM Zhang Rui wrote: > > > > + > > > > +static int __init acpi_pnp_scan_

Re: [RFC PATCH 2/8] PNPACPI: use whilte list for pnpacpi device enumeration

2014-03-09 Thread Rafael J. Wysocki
On Sunday, March 09, 2014 01:29:30 PM Zhang Rui wrote: > On Fri, 2014-03-07 at 02:44 +0100, Rafael J. Wysocki wrote: > > On Wednesday, February 26, 2014 05:11:08 PM Zhang Rui wrote: > > > + > > > +static int __init acpi_pnp_scan_handler_attach(struct acpi_device *adev, > > > > This can't be __init

Re: [RFC PATCH 2/8] PNPACPI: use whilte list for pnpacpi device enumeration

2014-03-08 Thread Zhang Rui
On Fri, 2014-03-07 at 02:44 +0100, Rafael J. Wysocki wrote: > On Wednesday, February 26, 2014 05:11:08 PM Zhang Rui wrote: > > + > > +static int __init acpi_pnp_scan_handler_attach(struct acpi_device *adev, > > This can't be __init. > > > + const struct acpi_devi

Re: [RFC PATCH 2/8] PNPACPI: use whilte list for pnpacpi device enumeration

2014-03-06 Thread Rafael J. Wysocki
On Wednesday, February 26, 2014 05:11:08 PM Zhang Rui wrote: > ACPI can be used to enumerate PNP devices, but the code does not > handle this in a good manner. > > Currently, if an ACPI device > 1. has _CRS method, > 2. has an identifications of >"three capital charactors followed by four hex

[RFC PATCH 2/8] PNPACPI: use whilte list for pnpacpi device enumeration

2014-02-26 Thread Zhang Rui
ACPI can be used to enumerate PNP devices, but the code does not handle this in a good manner. Currently, if an ACPI device 1. has _CRS method, 2. has an identifications of "three capital charactors followed by four hex numbers", 3. is not in the exclude list, it is enumerated to PNP bus. So a