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

33 lines
1.1 KiB
Diff

From 2015a3e0f7419f26bb4d20cf89cafa3f28b093b0 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 066/389] 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 985e7c2f7cf1..8f8be8256574 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.35.3