ACPI: scan: Add PNP0D80 to the _DEP exceptions list
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 5 Dec 2020 15:29:41 +0000 (16:29 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Dec 2020 12:52:40 +0000 (13:52 +0100)
commit2ef33ee7f4f68d77b852bb2c946fc2f8f136a3c1
treed4de0969b9a9727508848b95a69be52707b1ce1f
parent6091b2631032adafa1c8c0bd181aa5d153185c6f
ACPI: scan: Add PNP0D80 to the _DEP exceptions list

The PNP0D80 ("Windows-compatible System Power Management Controller")
device ID is used for identifying the special device object providing
the LPI (Low-power S0 Idle) _DSM interface [1].  That device object
does not supply any operation regions, but it appears in _DEP lists
for other devices in the ACPI tables on some systems to enforce
specific enumeration ordering that does not matter for Linux.

For this reason, _DEP list entries pointing to the device object whose
_CID returns PNP0D80 need not be taken into account as real operation
region dependencies, so add that device ID to the list of device IDs
for which the matching _DEP list entries should be ignored.

Accordingly, update the function used for matching device IDs in that
list to allow it to check _CID as well as _HID and rename it to
acpi_info_matches_ids().

Link: https://www.uefi.org/sites/default/files/resources/Intel_ACPI_Low_Power_S0_Idle.pdf
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c