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

33 lines
1.1 KiB
Diff

From 8f68841b650008ee5f8162783ae6546737a89409 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 067/469] 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 20484461604c..a0eaea551e19 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