From: Stefan Brüns Date: Fri, 3 Nov 2017 19:17:40 +0000 (-0700) Subject: Input: sparse-keymap - send sync event for KE_SW/KE_VSW X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f29c244075c12713b4d8c32a2707fa4604bf60d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Input: sparse-keymap - send sync event for KE_SW/KE_VSW Sync events are sent by sparse_keymap_report_entry for normal KEY_* events, and are generated by several drivers after generating SW_* events, so sparse_keymap_report_entry should do the same. Without the sync, events are accumulated in the kernel. Currently, no driver uses sparse-keymap for SW_* events, but it is required for the intel-vbtn platform driver to generate SW_TABLET_MODE events. Signed-off-by: Stefan Brüns Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/sparse-keymap.c b/drivers/input/sparse-keymap.c index bb0349fa64bc..fd03e55768c9 100644 --- a/drivers/input/sparse-keymap.c +++ b/drivers/input/sparse-keymap.c @@ -255,6 +255,7 @@ void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *k case KE_VSW: input_report_switch(dev, ke->sw.code, value); + input_sync(dev); break; } }