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

29 lines
938 B
Diff

From a45d9d59fbded78a1abc8bd637d80f26563e9542 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Fri, 9 Dec 2022 21:49:26 +0100
Subject: [PATCH 330/389] 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 e5b5efe09a3e..2c8b99ee7aea 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