Commit 4134252a authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

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.

Fixes: 3b51c44b

 ("Input: allow drivers specify timestamp for input events")
Reported-by: default avatarteika kazura <>
Tested-by: default avatarteika kazura <>
Signed-off-by: default avatarDmitry Torokhov <>
parent fbf66796
......@@ -190,6 +190,7 @@ static void input_repeat_key(struct timer_list *t)
input_set_timestamp(dev, ktime_get());
input_pass_values(dev, vals, ARRAY_SIZE(vals));
if (dev->rep[REP_PERIOD])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment