]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / Wakeup: Enable button GPEs unconditionally during initialization
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 12 Feb 2011 00:39:53 +0000 (01:39 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 12 Feb 2011 00:39:53 +0000 (01:39 +0100)
commitbe85b7694d7627c53abd77aba9936603053f72c2
tree76f4624ab2df93bea01c174ac9c3c09a65463029
parent4aefce0f01dc65955c4d4f861d1cc2aff59a2a85
ACPI / Wakeup: Enable button GPEs unconditionally during initialization

Commit 41d2ef8 (ACPI: Use GPE reference counting to support shared
GPEs) introduced a suspend regression where boxes resume immediately
after being suspended due to the lid or sleep button wakeup status
not being cleared properly.  This happens if the GPEs corresponding
to those devices are not enabled all the time, which apparently is
expected by some BIOSes.

To fix this problem, enable button and lid GPEs unconditionally
during initialization and keep them enabled all the time, regardless
of whether or not the ACPI button driver is used.

References: https://bugzilla.kernel.org/show_bug.cgi?id=27372
Reported-and-tested-by: Ferenc Wágner <wferi@niif.hu>
Cc: stable@kernel.org
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/acpi/wakeup.c