]> git.baikalelectronics.ru Git - kernel.git/commit
HID: rmi: Disable scanning if the device is not a wake source
authorAndrew Duggan <aduggan@synaptics.com>
Mon, 6 Jul 2015 23:48:31 +0000 (16:48 -0700)
committerJiri Kosina <jkosina@suse.com>
Thu, 9 Jul 2015 12:24:51 +0000 (14:24 +0200)
commitc4c7877b3d6055691489ebf53afb622f7eb01861
tree65a98d160079eaa9cc4518025878b5ac51c50072
parent10bc6447a46b4450428a475962b0edaeace0cf24
HID: rmi: Disable scanning if the device is not a wake source

Some touchpads are configured with firmware which continues to scan for
fingers at a minimal scan rate even after receiving the HID power sleep
command. This allows a finger touching the touchpad to genrate a wake
event. This patch ensures that scanning is disabled if the touchpad is
not a wake source and ensures scanning is enabled on resume.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-rmi.c