armbian_build/patch/kernel/archive/sunxi-6.6/patches.megous/input-touch-goodix-Try-to-keep-regulator-enable-disable-balance.patch
The-going 25b0741531 sunxi-6.6: megous patches: revert commit changes e103e2e1da
Undo changes that are made massively and create a lot of noise.
e103e2e1da
2025-01-19 20:22:11 +01:00

29 lines
883 B
Diff

From 7a1352b5211417c237b8172983aa4c777363e966 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
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 <megi@xff.cz>
---
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