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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:52 +0000 (10:19 +0200)
commit278c4d5e30b9cbc597cebc358b6c8c567235c782
tree30a4e4484b18d0ca6cf4ebdd945188976bfbc252
parent142abcd792b796e4777134af30911567817317d8
Input: elan_i2c - only increment wakeup count on touch

[ Upstream commit 966334dfc472bdfa67bed864842943b19755d192 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/mouse/elan_i2c_core.c