]> git.baikalelectronics.ru Git - kernel.git/commit
HID: input: call input_sync() when automatically releasing a key
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 9 Jul 2015 21:33:21 +0000 (14:33 -0700)
committerJiri Kosina <jkosina@suse.com>
Fri, 10 Jul 2015 09:34:44 +0000 (11:34 +0200)
commitdadbd09ee4569cd79fe284f680d48d47fec73675
tree5f6eac80468fbb9adc7cc2c996302b2589c2a5a1
parent99eda9dab192af6623d0eeb25074bada64dd8abc
HID: input: call input_sync() when automatically releasing a key

We need to emit EV_SYN/SYN_REPORT between key press and release, otherwise
userspace is allowed to "swallow" the event.

[jkosina@suse.com: Dmitry says that he's observing this behavior with
 Plantronics headset]

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-input.c