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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 19:16:59 +0000 (12:16 -0700)
commitfe76487efabef700daff6b0f92776354f09c1c4c
treea1497f5fc8aac6e58a7f77a11f3e2b7c17eb9c5b
parent3d5a41e4b3aa0f91c4f216c1bdec5c7a35455397
dell-rbtn: Ignore ACPI notifications if device is suspended

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>
drivers/platform/x86/dell-rbtn.c