]> git.baikalelectronics.ru Git - kernel.git/commit
Input: properly queue synthetic events
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 20 Jul 2022 18:10:47 +0000 (11:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 20 Jul 2022 18:35:11 +0000 (11:35 -0700)
commit37e981a0c419d577fbe7a8b5bb12bc01ccf420e1
treeefaac5365e93474ae04330d72ef31f61e6971277
parente108114fecfd1abe986b68cad2ab2711661a96e4
Input: properly queue synthetic events

We should not be passing synthetic events (such as autorepeat events)
out of order with the events coming from the hardware device, but rather
add them to pending events and flush them all at once.

This also fixes an issue with timestamps for key release events carrying
stale data from the previous autorepeat event.

Reviewed-by: Angela Czubak <acz@semihalf.com>
Link: https://lore.kernel.org/r/YszNfq4b6MkeoCJC@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c