]> git.baikalelectronics.ru Git - kernel.git/commit
Input: reset device timestamp on sync
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 29 Aug 2019 23:55:26 +0000 (16:55 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Sep 2019 00:56:32 +0000 (17:56 -0700)
commitd3e25a030d8d097e09f2c05333fc136c5ec38a1c
treeed0309fff54af1545630a32dfff981b36c5758d7
parent59b1af605f212f4dfcfec2c1cbc544de3800ac6a
Input: reset device timestamp on sync

We need to reset input device's timestamp on input_sync(), otherwise
drivers not using input_set_timestamp() will end up with a stale
timestamp after their clients consume first input event.

Fixes: 353bc6f2724d ("Input: allow drivers specify timestamp for input events")
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c