mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] input: don't call input_dev_release_keys() in resume
@ 2013-03-07 14:01 oskar.andero
  2013-04-04 14:57 ` Oskar Andero
  2013-04-04 16:33 ` Dmitry Torokhov
  0 siblings, 2 replies; 6+ messages in thread
From: oskar.andero @ 2013-03-07 14:01 UTC (permalink / raw)
  To: linux-kernel, linux-input; +Cc: dmitry.torokhov, Aleksej Makarov, Oskar Andero

From: Aleksej Makarov <aleksej.makarov@sonymobile.com>

When waking up the platform by pressing a specific key, sending a
release on that key makes it impossible to react on the event in
user-space.

Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Radovan Lekanovic <radovan.lekanovic@sonymobile.com>
Signed-off-by: Aleksej Makarov <aleksej.makarov@sonymobile.com>
Signed-off-by: Oskar Andero <oskar.andero@sonymobile.com>
---
 drivers/input/input.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/input/input.c b/drivers/input/input.c
index c044699..61ce19f 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -1690,7 +1690,10 @@ static int input_dev_resume(struct device *dev)
 {
 	struct input_dev *input_dev = to_input_dev(dev);
 
-	input_reset_device(input_dev);
+	mutex_lock(&input_dev->mutex);
+	if (input_dev->users)
+		input_dev_toggle(input_dev, true);
+	mutex_unlock(&input_dev->mutex);
 
 	return 0;
 }
-- 
1.7.8.6


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-12  7:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-07 14:01 [PATCH] input: don't call input_dev_release_keys() in resume oskar.andero
2013-04-04 14:57 ` Oskar Andero
2013-04-04 16:33 ` Dmitry Torokhov
2013-04-05  8:57   ` Oskar Andero
2013-07-05  7:46   ` Oskar Andero
2013-07-12  7:44     ` Oskar Andero

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome