Loading drivers/input/input.c +5 −3 Original line number Diff line number Diff line Loading @@ -1662,10 +1662,12 @@ void input_reset_device(struct input_dev *dev) * Keys that have been pressed at suspend time are unlikely * to be still pressed when we resume. */ if (!test_bit(INPUT_PROP_NO_DUMMY_RELEASE, dev->propbit)) { spin_lock_irq(&dev->event_lock); input_dev_release_keys(dev); spin_unlock_irq(&dev->event_lock); } } mutex_unlock(&dev->mutex); } Loading include/uapi/linux/input.h +1 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,7 @@ struct input_keymap_entry { #define INPUT_PROP_DIRECT 0x01 /* direct input devices */ #define INPUT_PROP_BUTTONPAD 0x02 /* has button(s) under pad */ #define INPUT_PROP_SEMI_MT 0x03 /* touch rectangle only */ #define INPUT_PROP_NO_DUMMY_RELEASE 0x04 /* no dummy event */ #define INPUT_PROP_MAX 0x1f #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) Loading Loading
drivers/input/input.c +5 −3 Original line number Diff line number Diff line Loading @@ -1662,10 +1662,12 @@ void input_reset_device(struct input_dev *dev) * Keys that have been pressed at suspend time are unlikely * to be still pressed when we resume. */ if (!test_bit(INPUT_PROP_NO_DUMMY_RELEASE, dev->propbit)) { spin_lock_irq(&dev->event_lock); input_dev_release_keys(dev); spin_unlock_irq(&dev->event_lock); } } mutex_unlock(&dev->mutex); } Loading
include/uapi/linux/input.h +1 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,7 @@ struct input_keymap_entry { #define INPUT_PROP_DIRECT 0x01 /* direct input devices */ #define INPUT_PROP_BUTTONPAD 0x02 /* has button(s) under pad */ #define INPUT_PROP_SEMI_MT 0x03 /* touch rectangle only */ #define INPUT_PROP_NO_DUMMY_RELEASE 0x04 /* no dummy event */ #define INPUT_PROP_MAX 0x1f #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) Loading