summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/dell-smbios.c
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@dell.com>2017-08-04 12:00:06 -0500
committerDarren Hart (VMware) <dvhart@infradead.org>2017-08-05 13:59:47 -0700
commitc801603e6d0c1bf87930402462d2e4185b1e9264 (patch)
tree1ebea6bdff89021354e9462611c05c2c7c0d0123 /drivers/platform/x86/dell-smbios.c
parentbaa5480b0509d8af06c37fff03edbb5a6815cef1 (diff)
platform/x86: intel-vbtn: match power button on press rather than release
This fixes a problem where the system gets stuck in a loop unable to wakeup via power button in s2idle. The problem happens because: - press power button: - system emits 0xc0 (power press), event ignored - system emits 0xc1 (power release), event processed, emited as KEY_POWER - set wakeup_mode to true - system goes to s2idle - press power button - system emits 0xc0 (power press), wakeup_mode is true, system wakes - system emits 0xc1 (power release), event processed, emited as KEY_POWER - system goes to s2idle again To avoid this situation, process the presses (which matches what intel-hid does too). Verified on an Dell XPS 9365 Signed-off-by: Mario Limonciello <mario.limonciello@dell.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/platform/x86/dell-smbios.c')
0 files changed, 0 insertions, 0 deletions