Input: elan_i2c - only increment wakeup count on touch
authorDerek Basehore <dbasehore@chromium.org>
Tue, 7 Jul 2020 00:39:41 +0000 (17:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 7 Jul 2020 00:41:41 +0000 (17:41 -0700)
commit966334dfc472bdfa67bed864842943b19755d192
tree4b34101b659fb82f60ebd4dcaa6cb4f949d1ec25
parentdcb00fc799dc03fd320e123e4c81b3278c763ea5
Input: elan_i2c - only increment wakeup count on touch

This moves the wakeup increment for elan devices to the touch report.
This prevents the drivers from incorrectly reporting a wakeup when the
resume callback resets then device, which causes an interrupt to
occur.

Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Link: https://lore.kernel.org/r/20200706235046.1984283-1-dbasehore@chromium.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_core.c