summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheney Ni <cheneyni@google.com>2022-07-21 01:24:17 +0800
committerCheney Ni <cheneyni@google.com>2022-07-21 01:24:17 +0800
commit6fe5c8c41a056001ba30f3e9ed4739e89eb17190 (patch)
tree204912d3f56146619e0c20185e8b7eb865403653
parent61a4868bcea14d8616afc42ebbd3c431f51c7de3 (diff)
downloadqcom-6fe5c8c41a056001ba30f3e9ed4739e89eb17190.tar.gz
Bluetooth: Get idle IP right after GPIO initializedandroid-13.0.0_r0.93android-gs-felix-5.10-android13-d3
We initialize the idle IP state with RFKILL probing, so have to get the idle IP before that. Bug: 238163307 Signed-off-by: Cheney Ni <cheneyni@google.com> Change-Id: Ie28d70b24d703715e0849ff90daaf9458c2c9b26
-rw-r--r--btpower.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/btpower.c b/btpower.c
index 0538f13..7d7d125 100644
--- a/btpower.c
+++ b/btpower.c
@@ -1248,6 +1248,7 @@ static int bt_power_probe(struct platform_device *pdev)
if (ret < 0)
goto free_pdata;
+ drvdata->uart_idle_index = exynos_get_idle_ip_index("bluetooth");
ret = btpower_rfkill_probe(pdev, drvdata);
if (ret < 0)
goto free_gpio;
@@ -1260,8 +1261,6 @@ static int bt_power_probe(struct platform_device *pdev)
btpower_aop_mbox_init(drvdata);
- drvdata->uart_idle_index = exynos_get_idle_ip_index("bluetooth");
-
platform_set_drvdata(pdev, drvdata);
return 0;