]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: bus: Adjust feature mask creation for \_SB._OSC
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 22 Dec 2025 19:23:29 +0000 (20:23 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Dec 2025 16:12:01 +0000 (17:12 +0100)
commit6485059361923236735f763af3fc9cbb909fc6dd
tree9c38047e755148d7d30ce106423dea939bafe4cb
parente5322888e6bf4ec17964a93638c9b14433a2f6f1
ACPI: bus: Adjust feature mask creation for \_SB._OSC

The feature mask creation for \_SB._OSC is messy and hard to follow,
so clean it up and make all of the CPPC-related features depend on
CONFIG_ACPI_CPPC_LIB as they will not work if it is not set anyway.

Also make acpi_bus_osc_negotiate_platform_control() print a message
including a bit mask representig the features for which control has
been granted.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/4495088.ejJDZkT8p0@rafael.j.wysocki
drivers/acpi/bus.c