]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc12c7938c2a3b559ff7bb3079ddff938c3c03a1
tree4b34101b659fb82f60ebd4dcaa6cb4f949d1ec25
parent210a4b10f1da2706e067c998d5f2701d7e8683b1
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