]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Change acpi_device_always_present() into acpi_device_override_status()
authorHans de Goede <hdegoede@redhat.com>
Mon, 22 Nov 2021 17:05:31 +0000 (18:05 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 1 Dec 2021 19:14:25 +0000 (20:14 +0100)
commit41f43b5f4838557b592c8f78b72d3896455571af
tree0bafc7a05471931b7937bb002fd0e98e0641748b
parent3a8600c0ae2a1d1f95026984faa49882b33838da
ACPI: Change acpi_device_always_present() into acpi_device_override_status()

Currently, acpi_bus_get_status() calls acpi_device_always_present() to
allow platform quirks to override the _STA return to report that a
device is present (status = ACPI_STA_DEFAULT) independent of the _STA
return.

In some cases it might also be useful to have the opposite functionality
and have a platform quirk which marks a device as not present (status = 0)
to work around ACPI table bugs.

Change acpi_device_always_present() into a more generic
acpi_device_override_status() function to allow this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c
drivers/acpi/x86/utils.c
include/acpi/acpi_bus.h