From 72360d977fbb42741a7bb82b4b72a046597bad4d Mon Sep 17 00:00:00 2001 From: "qiu.zeng" Date: Fri, 7 Dec 2018 10:49:08 +0800 Subject: [PATCH] BT: resolve bt remote re-connected fail [1/1] PD#SWPL-2735 Problem: bt remote re-connected fail Solution: control bluetooth opwer up Verify: Verifying on Public Edition r311 Change-Id: I8c74442894f606d5afd992e52d6c80bada0aed9f Signed-off-by: Qiu Zeng --- drivers/amlogic/bluetooth/bt_device.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/bluetooth/bt_device.c b/drivers/amlogic/bluetooth/bt_device.c index 594a14b..c926f13 100644 --- a/drivers/amlogic/bluetooth/bt_device.c +++ b/drivers/amlogic/bluetooth/bt_device.c @@ -281,8 +281,13 @@ static int bt_probe(struct platform_device *pdev) #else pdata = (struct bt_dev_data *)(pdev->dev.platform_data); #endif - bt_device_init(pdata); + if (pdata->power_down_disable == 1) { + pdata->power_down_disable = 0; + bt_device_on(pdata); + pdata->power_down_disable = 1; + } + /* default to bluetooth off */ /* rfkill_switch_all(RFKILL_TYPE_BLUETOOTH, 1); */ /* bt_device_off(pdata); */ -- 2.7.4