Files
build/patch/kernel/archive/sunxi-6.16/patches.megous/input-cyttsp4-ENOSYS-error-is-ok-when-powering-up.patch
2025-09-21 20:09:24 +02:00

30 lines
963 B
Diff

From 616c5bfc7639a34a048d0b4cb36b73d2960ce623 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Sat, 28 Sep 2019 18:01:49 +0200
Subject: input: cyttsp4: ENOSYS error is ok when powering up
This error is handled gracefully, don't report it.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/input/touchscreen/cyttsp4_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index b572def3e00b..e520a8de4516 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -1764,7 +1764,8 @@ static int cyttsp4_core_wake_(struct cyttsp4 *cd)
rc = -ENOSYS;
}
if (rc < 0) {
- dev_err(dev, "%s: HW Power up fails r=%d\n",
+ if (rc != -ENOSYS)
+ dev_err(dev, "%s: HW Power up fails r=%d\n",
__func__, rc);
/* Initiate a read transaction to wake up */
--
2.51.0