]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: scan: Do not add device IDs from _CID if _HID is not valid
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Oct 2021 18:57:31 +0000 (20:57 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Nov 2021 16:50:35 +0000 (17:50 +0100)
commit1f4f5d3fe13335cbb1973491ab7c9a8099a2e72b
tree9aa06efbd769da8036bbc4ef4459ba1de668d4be
parentbdf2074c36ff2ec1e88ae41beb6e104f4e7f0cff
ACPI: scan: Do not add device IDs from _CID if _HID is not valid

Section 6.1.2 of ACPI 6.4 explicitly requires _HID to be present for
_CID to be defined, so don't add device IDs from _CID to the device
IDs list of a device if _HID is not valid.

Link: https://uefi.org/specs/ACPI/6.4/06_Device_Configuration/Device_Configuration.html#cid-compatible-id
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
drivers/acpi/scan.c