Files
BPI-CM9-Linux/build/patch/kernel/archive/sunxi-6.6/patches.megous/input-touch-goodix-Try-to-keep-regulator-enable-disable-balance.patch

29 lines
883 B
Diff

From 7a1352b5211417c237b8172983aa4c777363e966 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <[email protected]>
Date: Sun, 21 May 2023 01:26:59 +0200
Subject: input: touch: goodix: Try to keep regulator enable/disable balanced
Failure handling is still not optimal in this driver, but let's
try to improve it.
Signed-off-by: Ondrej Jirman <[email protected]>
---
drivers/input/touchscreen/goodix.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
index 3934f6422b3e..600b841a0a39 100644
--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -1502,6 +1502,7 @@ static int goodix_resume(struct device *dev)
error = regulator_enable(ts->vddio);
if (error) {
+ regulator_disable(ts->avdd28);
dev_err(dev, "Regulator vddio enable failed.\n");
return error;
}
--
2.35.3