ACPI / button: Do not propagate wakeup-from-suspend events
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Jul 2014 22:59:04 +0000 (00:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Jul 2014 22:59:04 +0000 (00:59 +0200)
commite71eeb2a6bcc6282b95215eb353a3ac9ce3e0de3
tree6cf8cb0197d889c8bba397e68524e36a8e3a2c5e
parent9a3c4145af32125c5ee39c0272662b47307a8323
ACPI / button: Do not propagate wakeup-from-suspend events

During system suspend mark ACPI buttons (other than the lid) as
"suspended" and if in that state, report wakeup events on button
events, but do not propagate those events up the stack.

This prevents systems from being turned off after a button-triggered
wakeup from the "freeze" sleep state.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=77611
Tested-on: Acer Aspire S5, Toshiba Portege R500
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/button.c