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

33 lines
1.1 KiB
Diff

From 7f4b27bb8726dbe12222ea7abb6744bd7f8b42d5 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megous@megous.com>
Date: Sat, 28 Sep 2019 18:03:41 +0200
Subject: [PATCH 174/478] 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 <megous@megous.com>
---
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