summaryrefslogtreecommitdiff
path: root/drivers/input/input.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2020-03-25 10:57:54 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2020-03-26 17:05:08 -0700
commit4134252ab7e2c339a54302b88496cb5a89cdbaec (patch)
treea37b12ee31be431e14cbde00b8d77416c1a7d67b /drivers/input/input.c
parentfbf66796a0aedbaea248c7ade1459ccd0dd4cb44 (diff)
downloadlwn-4134252ab7e2c339a54302b88496cb5a89cdbaec.tar.gz
lwn-4134252ab7e2c339a54302b88496cb5a89cdbaec.zip
Input: fix stale timestamp on key autorepeat events
We need to refresh timestamp when emitting key autorepeat events, otherwise they will carry timestamp of the original key press event. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=206929 Fixes: 3b51c44bd693 ("Input: allow drivers specify timestamp for input events") Cc: stable@vger.kernel.org Reported-by: teika kazura <teika@gmx.com> Tested-by: teika kazura <teika@gmx.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r--drivers/input/input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index ee6c3234df36..e2eb9b9b8363 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -190,6 +190,7 @@ static void input_repeat_key(struct timer_list *t)
input_value_sync
};
+ input_set_timestamp(dev, ktime_get());
input_pass_values(dev, vals, ARRAY_SIZE(vals));
if (dev->rep[REP_PERIOD])