armbian_build/patch/kernel/archive/sunxi-6.2/patches.megous/input-cyttsp4-ENOSYS-error-is-ok-when-powering-up.patch
The-going 77674a2b76
Sunxi 6.2 (#4883)
* sunxi-6.2: add megous patches

* sunxi-6.2: add series.conf

* sunxi-6.2: add armbian patches

* sunxi-6.2: mfd: sunxi-ac200: fix error initialization

* sunxi-6.2: Extract patches again after rebasing

---------

Co-authored-by: Igor Pečovnik <igor@armbian.com>
2023-03-03 19:09:22 +01:00

30 lines
973 B
Diff

From 9482dbcc3fbd34b8a9f6f592e415c9f61232a4f8 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: [PATCH 069/391] 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 3addb701f..985e7c2f7 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -1766,7 +1766,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.35.3