]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PM: Do not disable wakeup GPEs that have not been enabled
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Dec 2014 21:51:58 +0000 (22:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Dec 2014 21:51:58 +0000 (22:51 +0100)
commitcbf0cde61b1f474594569858d92c5b4cb8e1ee9b
tree7a81830a3fd4a2da4db45d2dd791493a2ac6d5de
parentc6d8e5eb6c7d294e5abddbc7f623e9b24ae83cf9
ACPI / PM: Do not disable wakeup GPEs that have not been enabled

In some cases acpi_device_wakeup() may be called to ensure wakeup
power to be off for a given device even though that device's wakeup
GPE has not been enabled so far.  It calls acpi_disable_gpe() on a
GPE that's not enabled and this causes ACPICA to return the AE_LIMIT
status code from that call which then is reported as an error by the
ACPICA's debug facilities (if enabled).  This may lead to a fair
amount of confusion, so introduce a new ACPI device wakeup flag
to store the wakeup GPE status and avoid disabling wakeup GPEs
that have not been enabled.

Reported-and-tested-by: Venkat Raghavulu <venkat.raghavulu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_pm.c
include/acpi/acpi_bus.h