]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
dell-rbtn: Ignore ACPI notifications if device is suspended
authorGabriele Mazzotta <gabriele.mzt@gmail.com>
Tue, 24 May 2016 20:53:08 +0000 (22:53 +0200)
committerKamal Mostafa <kamal@canonical.com>
Fri, 10 Jun 2016 13:32:25 +0000 (06:32 -0700)
commita71384df0c948cda11d520a6fa41cac66247f7c7
tree0c2a000b71238072a97e5c40c6517cbbef6eb1ff
parent76c9e08779ab0de8fb3670c7bdcc6ec9313f7ad7
dell-rbtn: Ignore ACPI notifications if device is suspended

BugLink: http://bugs.launchpad.net/bugs/1588945
commit ff8651237f39cea60dc89b2d9f25d9ede3fc82c0 upstream.

Some BIOSes unconditionally send an ACPI notification to RBTN when the
system is resuming from suspend. This makes dell-rbtn send an input
event to userspace as if a function key was pressed. Prevent this by
ignoring all the notifications received while the device is suspended.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=106031
Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Tested-by: Alex Hung <alex.hung@canonical.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/platform/x86/dell-rbtn.c