From: lele.liu Date: Wed, 28 Jul 2021 06:34:12 +0000 (+0800) Subject: Android S bt: kernel get BT-WAKE,do not send power key[1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7c2cf01872316a1770e52dcc8d91b1d93462d96;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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; }