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)
committerDarren Hart <dvhart@linux.intel.com>
Fri, 27 May 2016 18:47:56 +0000 (11:47 -0700)
commitff8651237f39cea60dc89b2d9f25d9ede3fc82c0
tree1a67e4a17f92560bc0dad1eff332275d73bc3183
parentafcedebc6a094224973534f43b396bbbf33fe44e
dell-rbtn: Ignore ACPI notifications if device is suspended

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>
Cc: stable@vger.kernel.org
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/dell-rbtn.c