diff options
author | Cheney Ni <cheneyni@google.com> | 2022-07-21 01:24:17 +0800 |
---|---|---|
committer | Cheney Ni <cheneyni@google.com> | 2022-07-21 01:24:17 +0800 |
commit | 6fe5c8c41a056001ba30f3e9ed4739e89eb17190 (patch) | |
tree | 204912d3f56146619e0c20185e8b7eb865403653 | |
parent | 61a4868bcea14d8616afc42ebbd3c431f51c7de3 (diff) | |
download | qcom-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |