armbian_build/patch/kernel/archive/sunxi-5.10/megous/input-cyttsp4-ENOSYS-error-is-ok-when-powering-up.patch
The-going 7964a578f5
Patches megous 5.10 (#3293)
* Add a series of patches for sunxi 5.10

Patches from the repository
https://github.com/megous/linux branches of orange-pi-5.10

* Patches adapted to the kernel version v5.10.81

* Remove unnecessary patches 5.10.19-5.10.75

* Kernel switch tag=v5.10.81 for the current sunxi

* Adjust broken patches, build tested on sunxi and sunxi64

* Remove patch added by mistake

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-11-27 00:48:30 +01:00

30 lines
972 B
Diff

From a8bae27570a1e154135443f5018037f7ded51c35 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megous@megous.com>
Date: Sat, 28 Sep 2019 18:01:49 +0200
Subject: [PATCH 076/351] input: cyttsp4: ENOSYS error is ok when powering up
This error is handled gracefully, don't report it.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
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 8dcb3ce15f29..b9e644cac606 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -1752,7 +1752,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.34.0