ACPI : do not use Lid and Sleep button for S5 wakeup
commit5afa0c0ec8b0db87309af1fa8a006ee343818b84
authorZhang Rui <rui.zhang@intel.com>
Tue, 4 Dec 2012 22:23:16 +0000 (4 23:23 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 16 Jan 2013 01:13:28 +0000 (16 01:13 +0000)
tree3aee84902c9938a33d07c70c5fab638ed32fec57
parent49896bd526a9acfe607b9d8b1fb444cbe6fa529f
ACPI : do not use Lid and Sleep button for S5 wakeup

commit b7e383046c2c7c13ad928cd7407eafff758ddd4b upstream.

When system enters power off, the _PSW of Lid device is enabled.
But this may cause the system to reboot instead of power off.

A proper way to fix this is to always disable lid wakeup capability for S5.

References: https://bugzilla.kernel.org/show_bug.cgi?id=35262
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/acpi/scan.c