From: qiu.zeng Date: Fri, 7 Dec 2018 02:49:08 +0000 (+0800) Subject: BT: resolve bt remote re-connected fail [1/1] X-Git-Tag: khadas-vims-v0.9.6-release~1039 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72d65c16340af5bd07dd8ba437f44b6b37cc1854;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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); */