]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / ACPICA: Do not attempt to disable GPE when installing handler
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 11 Jun 2010 22:05:19 +0000 (00:05 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 11 Jun 2010 22:40:43 +0000 (18:40 -0400)
commite6db77aff2c7015a3c941cdeed54d4d462311006
tree55e5284b0fc426d8bd5c421d26e4090cf428ecee
parent1c0e4a74144bd11c60e78154c7d53f8c0f6a1ead
ACPI / ACPICA: Do not attempt to disable GPE when installing handler

Commit 1c0e4a74144bd11c60e78154c7d53f8c0f6a1ead (ACPICA: Minimize
the differences between linux GPE code and ACPICA code base)
introduced a change attempting to disable a GPE before installing
a handler for it in acpi_install_gpe_handler() which was incorrect.
First, the GPE disabled by it is never enabled again (except during
resume) which leads to battery insert/remove events not being
reported on the Maxim Levitsky's machine.  Second, the disabled
GPE is still reported as enabled by the sysfs interface that only
checks its enable register's enable_for_run mask.

Revert this change for now, because it causes more damage to happen
than the bug it was supposed to fix.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reported-and-tested-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/evxface.c