From 1341fe96bedc594fa52213d5b17cf0ee65907350 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Fri, 9 Dec 2022 21:49:26 +0100
Subject: [PATCH 403/463] 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 9caa72dbd7330..56fa677d00fd6 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.46.0

