]> 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)
commite38f9ff63e6d403f8e52302d223e3c5c110872ee
tree9aa06efbd769da8036bbc4ef4459ba1de668d4be
parent136057256686de39cc3a07c2e39ef6bc43003ff6
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