]> git.dujemihanovic.xyz Git - linux.git/commit
platform/x86/intel/hid: Don't wake on 5-button releases
authorDavid McFarland <corngood@gmail.com>
Thu, 4 Apr 2024 11:41:45 +0000 (08:41 -0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 8 Apr 2024 15:21:14 +0000 (18:21 +0300)
commit5864e479ca4344f3a5df8074524da24c960f440b
tree848dd4094a9708923ebbecb31b7e860baae5b590
parentb45d0d01da542be280d935d87b71465028cdcb1f
platform/x86/intel/hid: Don't wake on 5-button releases

If, for example, the power button is configured to suspend, holding it
and releasing it after the machine has suspended, will wake the machine.

Also on some machines, power button release events are sent during
hibernation, even if the button wasn't used to hibernate the machine.
This causes hibernation to be aborted.

Fixes: 0c4cae1bc00d ("PM: hibernate: Avoid missing wakeup events during hibernation")
Signed-off-by: David McFarland <corngood@gmail.com>
Tested-by: Enrik Berkhan <Enrik.Berkhan@inka.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/878r1tpd6u.fsf_-_@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/hid.c