From 60c737cac3fe72ab61060d4935e3f0310f78057e Mon Sep 17 00:00:00 2001 From: "lele.liu" Date: Wed, 28 Jul 2021 14:34:12 +0800 Subject: [PATCH] Android S bt: kernel get BT-WAKE,do not send power key[1/1] PD#SWPL-49147 Problem: Bluetooth wakes up device unexpectedly Solution: kernel get BT-WAKE,do not send power key Verify: local Signed-off-by: lele.liu Change-Id: I8ccc0a719f8b54537b932c66f29a52c4a956d69b Signed-off-by: lele.liu --- drivers/amlogic/bluetooth/bt_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/amlogic/bluetooth/bt_device.c b/drivers/amlogic/bluetooth/bt_device.c index b2076224bc41..2884a7cf0d93 100644 --- a/drivers/amlogic/bluetooth/bt_device.c +++ b/drivers/amlogic/bluetooth/bt_device.c @@ -432,6 +432,7 @@ static int bt_resume(struct platform_device *pdev) } event = sdio_get_vendor(); BT_INFO("event = %d\n", event); +/* if ((event != 625) && get_resume_method() == BT_WAKEUP) { input_event(pdata->input_dev, EV_KEY, KEY_POWER, 1); @@ -440,6 +441,7 @@ static int bt_resume(struct platform_device *pdev) EV_KEY, KEY_POWER, 0); input_sync(pdata->input_dev); } +*/ return 0; } -- 2.20.1