diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-04-06 01:33:56 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-04-06 01:33:56 +0200 |
commit | 217027145ff087c7fdc8055504cc1c6aa7110ed2 (patch) | |
tree | 9a76e7ddba23f6a40d086b28dd6926ad35e76f7e /drivers/acpi | |
parent | f948620ffd6bb03dee0d0d7952629c7c250440cc (diff) | |
parent | fdad4e7a876a2cb3d2c1f04e5418c324e79fffef (diff) | |
download | linux-next-217027145ff087c7fdc8055504cc1c6aa7110ed2.tar.gz |
Merge branch 'acpi-scan-fixes' into linux-next
* acpi-scan-fixes:
ACPI / scan: Prefer devices without _HID for _ADR matching
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/glue.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c index fb19e1cdb641..edc8663b5db3 100644 --- a/drivers/acpi/glue.c +++ b/drivers/acpi/glue.c @@ -99,13 +99,13 @@ static int find_child_checks(struct acpi_device *adev, bool check_children) return -ENODEV; /* - * If the device has a _HID (or _CID) returning a valid ACPI/PNP - * device ID, it is better to make it look less attractive here, so that - * the other device with the same _ADR value (that may not have a valid - * device ID) can be matched going forward. [This means a second spec - * violation in a row, so whatever we do here is best effort anyway.] + * If the device has a _HID returning a valid ACPI/PNP device ID, it is + * better to make it look less attractive here, so that the other device + * with the same _ADR value (that may not have a valid device ID) can be + * matched going forward. [This means a second spec violation in a row, + * so whatever we do here is best effort anyway.] */ - return sta_present && list_empty(&adev->pnp.ids) ? + return sta_present && !adev->pnp.type.platform_id ? FIND_CHILD_MAX_SCORE : FIND_CHILD_MIN_SCORE; } |