Android S bt: kernel get BT-WAKE,do not send power key[1/1]
authorlele.liu <lele.liu@amlogic.com>
Wed, 28 Jul 2021 06:34:12 +0000 (14:34 +0800)
committerChristian Hoffmann <chrmhoffmann@gmail.com>
Sun, 12 Feb 2023 08:13:11 +0000 (09:13 +0100)
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 <lele.liu@amlogic.com>
Change-Id: I8ccc0a719f8b54537b932c66f29a52c4a956d69b
Signed-off-by: lele.liu <lele.liu@amlogic.com>
drivers/amlogic/bluetooth/bt_device.c

index b2076224bc415b5891cc50d8103b7d6645b34932..2884a7cf0d939c635be4e0b3b0aa053650f6002c 100644 (file)
@@ -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;
 }