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:18:38 +0000 (10:18 +0200)
commit4f5eb2735fa34f8bbd4557af8e03db544d3b011c
treed54009d7cac93e09f7c6f464f018e136e8e94cb2
parent186d3fe73e27a142e45d72de34d5fca4d0c0a684
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