build/patch/kernel/archive/sunxi-6.5/patches.megous/input-cyttsp4-Faster-recovery-from-failed-wakeup-HACK.patch

33 lines
1.1 KiB
Diff

From 81e72a4af2f7a05fa90d06fd565b46f106039c00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Sat, 28 Sep 2019 18:03:41 +0200
Subject: [PATCH 068/464] input: cyttsp4: Faster recovery from failed wakeup
(HACK)
For some reason on Pocket Book Touch Lux 3, sending and I2C
data, doesn't wake up the device, and it always times out.
Lower the timeout, so that reset is done ASAP after wakeup.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/input/touchscreen/cyttsp4_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index a9e86e444aeb..8170c25ecdb9 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -26,7 +26,7 @@
#define CY_CORE_SLEEP_REQUEST_EXCLUSIVE_TIMEOUT 5000
#define CY_CORE_MODE_CHANGE_TIMEOUT 1000
#define CY_CORE_RESET_AND_WAIT_TIMEOUT 500
-#define CY_CORE_WAKEUP_TIMEOUT 500
+#define CY_CORE_WAKEUP_TIMEOUT 50
#define CY_CORE_STARTUP_RETRY_COUNT 3
--
2.34.1