Messages in this thread | | | Date | Thu, 12 Feb 2015 12:51:39 +0200 | From | Mika Westerberg <> | Subject | Re: [V3 PATCH 1/2] ACPI / scan: Add support for ACPI _CLS device matching |
| |
On Wed, Feb 11, 2015 at 10:35:25PM +0000, Suthikulpanit, Suravee wrote: > >> Besides, how do you support modules with this? Or did I miss something? > > > >Good question. > > Ah. I didn¹t think about this part earlier. > > IIUC, the current ACPI driver would create modules.alias entry with format: > acpi:<HID>:<CID> > > What do you think if we append the _CLS of the device using the following > format: > acpi:<HID>:<CID>:<CLS> > > In case of PCI_CLASS_STORAGE_SATA_AHCI, this would become: > acpi:::0x10601
Note, that you can have multiple _CIDs, in other words it may look like:
acpi:<HID>:<CID0>:<CID1>:<CLS>
In which case I'm not sure how to match the class. Perhaps use something else than ':' as a separator for class?
BTW, should we add class_mask as well (like PCI does) so that drivers can match part of the class id?
| |