]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: property: Disregard references in data-only subnode lists
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Sep 2025 18:23:28 +0000 (20:23 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 16 Sep 2025 17:51:37 +0000 (19:51 +0200)
commitd06118fe9b03426484980ed4c189a8c7b99fa631
tree6309ef69f33da5e6de6d6738eca8be2dadef25c6
parentd0759b10989c5c5aae3d455458c9fc4e8cc694f7
ACPI: property: Disregard references in data-only subnode lists

Data-only subnode links following the ACPI data subnode GUID in a _DSD
package are expected to point to named objects returning _DSD-equivalent
packages.  If a reference to such an object is used in the target field
of any of those links, that object will be evaluated in place (as a
named object) and its return data will be embedded in the outer _DSD
package.

For this reason, it is not expected to see a subnode link with the
target field containing a local reference (that would mean pointing
to a device or another object that cannot be evaluated in place and
therefore cannot return a _DSD-equivalent package).

Accordingly, simplify the code parsing data-only subnode links to
simply print a message when it encounters a local reference in the
target field of one of those links.

Moreover, since acpi_nondev_subnode_data_ok() would only have one
caller after the change above, fold it into that caller.

Link: https://lore.kernel.org/linux-acpi/CAJZ5v0jVeSrDO6hrZhKgRZrH=FpGD4vNUjFD8hV9WwN9TLHjzQ@mail.gmail.com/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/acpi/property.c