]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: bugfix reporting of event handler status
authorZhang Rui <rui.zhang@intel.com>
Mon, 27 Oct 2008 21:01:02 +0000 (14:01 -0700)
committerLen Brown <len.brown@intel.com>
Tue, 28 Oct 2008 05:53:19 +0000 (01:53 -0400)
commitf47013d148c57b61b48ead4e3cf1c8d7d49145df
tree5197b6d5fbab8f78e4451320b5a1f4f06f62f404
parent185ca2e8d48c8f5c18667ce7b1d1e5337298d816
ACPI: bugfix reporting of event handler status

Introduce a new flag showing whether the event has an event handler/method.

For all the GPEs and Fixed Events,
 1. ACPI_EVENT_FLAG_HANDLE is cleared, it's an "invalid" ACPI event.
 2. Both ACPI_EVENT_FLAG_HANDLE and ACPI_EVENT_FLAG_DISABLE are set,
    it's "disabled".
 3. Both ACPI_EVENT_FLAG_HANDLE and ACPI_EVENT_FLAG_ENABLE are set,
    it's "enabled".
 4. Both ACPI_EVENT_FLAG_HANDLE and ACPI_EVENT_FLAG_WAKE_ENABLE are set,
    it's "wake_enabled".

Among other things, this prevents incorrect reporting of ACPI events
as being "invalid" when it's really just (temporarily) "disabled".

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Len Brown <len.brown@intel.com>
Documentation/ABI/testing/sysfs-firmware-acpi
drivers/acpi/events/evxfevnt.c
drivers/acpi/system.c
include/acpi/actypes.h