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 <qiu.zeng@amlogic.com>
This commit is contained in:
qiu.zeng
2018-12-07 10:49:08 +08:00
committed by Dongjin Kim
parent 2c9dae4eb4
commit d9a4945758

View File

@@ -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); */