Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f7424ee authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: don't send dummy release event when system resumes"

parents b9fb0ce0 9283a1b2
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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);
}
+1 −0
Original line number Diff line number Diff line
@@ -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)