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)
commit0925636042170e0b6716cd86635899c5f4258f69
tree65a98d160079eaa9cc4518025878b5ac51c50072
parent67db8a8086e9b865533348954f5547f1e433101e
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