linux / backbone-sources

SSH Git

To clone this repository:

git clone git@git.backbone.ws:linux/backbone-sources.git

To push to this repository:

# Add a new remote
git remote add origin git@git.backbone.ws:linux/backbone-sources.git

# Push the master branch to the newly added origin, and configure
# this remote and branch as the default:
git push -u origin master

# From now on you can push master to the "origin" remote with:
git push

Commit: #33fd368

Parent: #90aaf2f

Input: do not emit unneeded EV_SYN when suspending

commit 00159f19a5057cb779146afce1cceede692af346 upstream.

Do not emit EV_SYN/SYN_REPORT on suspend if there were no keys that are still pressed as we are suspending the device (and in all other cases when input core is forcibly releasing keys via input_dev_release_keys() call).

Reviewed-by: Benson Leung <bleung@chromium.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Bo Hu <bohu@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

avatar gregkh@linuxfoundation.org <gregkh @linuxfo…ation.org> (Committer) 12 days ago

avatar Dmitry Torokhov <dmitry.torokhov @gm…l.com> (Author) 2015-08-07 05:15

Summary

668 668 */
669 669 static void input_dev_release_keys(struct input_dev *dev)
670 670 {
671 bool need_sync = false;
671 672 int code;
672 673
673 674 if (is_event_supported(EV_KEY, dev->evbit, EV_MAX)) {
676 676 if (is_event_supported(code, dev->keybit, KEY_MAX) &&
677 677 __test_and_clear_bit(code, dev->key)) {
678 678 input_pass_event(dev, EV_KEY, code, 0);
679 need_sync = true;
679 680 }
680 681 }
681 input_pass_event(dev, EV_SYN, SYN_REPORT, 1);
682 if (need_sync)
683 input_pass_event(dev, EV_SYN, SYN_REPORT, 1);
682 684 }
683 685 }
684 686

Comments