Re: [V6 PATCH 2/3] ACPI / scan: Add support for ACPI _CLS device matching

2015-03-26 Thread Suravee Suthikulpanit
On 3/26/15 05:29, Mika Westerberg wrote: On Wed, Mar 25, 2015 at 03:46:07PM -0500, Suravee Suthikulpanit wrote: [...] diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index e530533..9563abe 100644 --- a/include/linux/mod_devicetable.h +++

Re: [V6 PATCH 2/3] ACPI / scan: Add support for ACPI _CLS device matching

2015-03-26 Thread Hanjun Guo
On 2015/3/26 18:29, Mika Westerberg wrote: > On Wed, Mar 25, 2015 at 03:46:07PM -0500, Suravee Suthikulpanit wrote: >> Device drivers typically use ACPI _HIDs/_CIDs listed in struct device_driver >> acpi_match_table to match devices. However, for generic drivers, we do not >> want to list _HID for

Re: [V6 PATCH 2/3] ACPI / scan: Add support for ACPI _CLS device matching

2015-03-26 Thread Mika Westerberg
On Wed, Mar 25, 2015 at 03:46:07PM -0500, Suravee Suthikulpanit wrote: > Device drivers typically use ACPI _HIDs/_CIDs listed in struct device_driver > acpi_match_table to match devices. However, for generic drivers, we do not > want to list _HID for all supported devices. Also, certain classes of

Re: [V6 PATCH 2/3] ACPI / scan: Add support for ACPI _CLS device matching

2015-03-26 Thread Mika Westerberg
On Wed, Mar 25, 2015 at 03:46:07PM -0500, Suravee Suthikulpanit wrote: Device drivers typically use ACPI _HIDs/_CIDs listed in struct device_driver acpi_match_table to match devices. However, for generic drivers, we do not want to list _HID for all supported devices. Also, certain classes of

Re: [V6 PATCH 2/3] ACPI / scan: Add support for ACPI _CLS device matching

2015-03-26 Thread Hanjun Guo
On 2015/3/26 18:29, Mika Westerberg wrote: On Wed, Mar 25, 2015 at 03:46:07PM -0500, Suravee Suthikulpanit wrote: Device drivers typically use ACPI _HIDs/_CIDs listed in struct device_driver acpi_match_table to match devices. However, for generic drivers, we do not want to list _HID for all

Re: [V6 PATCH 2/3] ACPI / scan: Add support for ACPI _CLS device matching

2015-03-26 Thread Suravee Suthikulpanit
On 3/26/15 05:29, Mika Westerberg wrote: On Wed, Mar 25, 2015 at 03:46:07PM -0500, Suravee Suthikulpanit wrote: [...] diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index e530533..9563abe 100644 --- a/include/linux/mod_devicetable.h +++

[V6 PATCH 2/3] ACPI / scan: Add support for ACPI _CLS device matching

2015-03-25 Thread Suravee Suthikulpanit
Device drivers typically use ACPI _HIDs/_CIDs listed in struct device_driver acpi_match_table to match devices. However, for generic drivers, we do not want to list _HID for all supported devices. Also, certain classes of devices do not have _CID (e.g. SATA, USB). Instead, we can leverage ACPI

[V6 PATCH 2/3] ACPI / scan: Add support for ACPI _CLS device matching

2015-03-25 Thread Suravee Suthikulpanit
Device drivers typically use ACPI _HIDs/_CIDs listed in struct device_driver acpi_match_table to match devices. However, for generic drivers, we do not want to list _HID for all supported devices. Also, certain classes of devices do not have _CID (e.g. SATA, USB). Instead, we can leverage ACPI