• R
    ACPI / scan: Take the PRP0001 position in the list of IDs into account · 2b9c698e
    Rafael J. Wysocki 提交于
    If the special PRP0001 device ID is present in a device's _CID list,
    it should not prevent any ACPI/PNP IDs preceding it in the device's
    list of identifiers from being matched first.  That is, only if none
    of the IDs preceding PRP0001 in the device's PNP/ACPI IDs list
    matches the IDs recognized by the driver, the driver's list of
    "compatible" IDs should be matched against the device's "compatible"
    property, if present.
    
    In addition to that, drivers can provide both acpi_match_table and
    of_match_table at the same time and the of_compatible matching
    should be used in that case too if PRP0001 is present in the
    device's list of identifiers.
    
    To make that happen, rework acpi_driver_match_device() to do the
    "compatible" property check in addition to matching the driver's
    list of ACPI IDs against the device's one.
    Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Tested-by: NMika Westerberg <mika.westerberg@linux.intel.com>
    2b9c698e
scan.c 65.8 KB