build/patch/kernel/archive/sunxi-6.2/patches.megous/misc-ppkb-manager-Disable-ppkb-manager-by-default-can-be-enable.patch

29 lines
932 B
Diff

From 38413c58d307007ae42cd56ef1ff0e6b57848e96 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Fri, 9 Dec 2022 21:49:26 +0100
Subject: [PATCH 377/391] misc: ppkb-manager: Disable ppkb-manager by default
(can be enabled at runtime)
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/misc/ppkb-manager.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/misc/ppkb-manager.c b/drivers/misc/ppkb-manager.c
index e5b5efe09..2c8b99ee7 100644
--- a/drivers/misc/ppkb-manager.c
+++ b/drivers/misc/ppkb-manager.c
@@ -847,7 +847,8 @@ static int kbpwr_probe(struct platform_device *pdev)
dev_info(dev, "Pinephone keyboard power manager ready\n");
- set_bit(KBPWR_F_EMERGENCY_SHUTDOWN, kbpwr->flags);
+ //set_bit(KBPWR_F_EMERGENCY_SHUTDOWN, kbpwr->flags);
+ set_bit(KBPWR_F_DISABLED, kbpwr->flags);
queue_delayed_work(kbpwr->wq, &kbpwr->work, msecs_to_jiffies(10000));
--
2.35.3