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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 1 Dec 2021 19:14:25 +0000 (20:14 +0100)
commitba46e42e925b5d09b4e441f8de3db119cc7df58f
tree29117ff2d72c04626d5b3d6ea7d15807fc5828b7
parent1a68b346a2c9969c05e80a3b99a9ab160b5655c0
ACPI / x86: Allow specifying acpi_device_override_status() quirks by path

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>
drivers/acpi/x86/utils.c