ACPI / x86: Allow specifying acpi_device_override_status() quirks by path
authorHans de Goede <hdegoede@redhat.com>
Mon, 22 Nov 2021 17:05:32 +0000 (18:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:54:13 +0000 (10:54 +0100)
commitb8b2e74a8751c79c39722bd9aba4ca8159381d98
treedd10436c5581fd646bcb1d839a42422816156b27
parentcda755506df4c73b23c2f37943350a435bf52f44
ACPI / x86: Allow specifying acpi_device_override_status() quirks by path

[ Upstream commit ba46e42e925b5d09b4e441f8de3db119cc7df58f ]

Not all ACPI-devices have a HID + UID, allow specifying quirks for
acpi_device_override_status() by path too.

Note this moves the path/HID+UID check to after the CPU + DMI checks
since the path lookup is somewhat costly.

This way this lookup is only done on devices where the other checks
match.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/x86/utils.c