>From d0edf89b99de37e366d5ad1ab08e3c936ac553ae Mon Sep 17 00:00:00 2001 From: Thomas Poussevin Date: Fri, 22 Aug 2014 17:56:17 +0200 Subject: [PATCH] [input] Set input sync param default status to true, to prevent touchscreen suspend fails. Problems used to happen only when touchsreen had not been touched since boot. When the first event is sent, input status is actualized. Signed-off-by: Thomas Poussevin --- drivers/input/input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/input.c b/drivers/input/input.c index 8921c61..c214b39 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -1652,6 +1652,7 @@ struct input_dev *input_allocate_device(void) if (dev) { dev->dev.type = &input_dev_type; dev->dev.class = &input_class; + dev->sync = true; device_initialize(&dev->dev); mutex_init(&dev->mutex); spin_lock_init(&dev->event_lock); -- 1.9.2