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 10:04:33 +0000 (11:04 +0100)
commit10f2c10c0e2073a17f10d5929425a079a8f32827
tree2a5d38b995a452a10b498df77a23485802e6dc1f
parent91f918b7885fb7757bf498a310cc65d71d3e6f72
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