summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheney Ni <cheneyni@google.com>2021-01-10 23:17:22 +0800
committerCheney Ni <cheneyni@google.com>2021-01-11 00:28:41 +0800
commit9caf5d430d0b2e752446f6d2c00fbf11a55c58dc (patch)
tree4dcbb948b6ee1d1babb52465148c191b8e925108
parent5c01a5d30501fcb29227cb120c3736514420c8db (diff)
downloadbroadcom-9caf5d430d0b2e752446f6d2c00fbf11a55c58dc.tar.gz
Nitrous: Add delay while doing BTBCM power via rfkill
Cherry-picked from hci_bcm driver to wait a full 10 ms after the regulators are enabled to account for signal rising times. Bug: 172976543 Bug: 172975224 Signed-off-by: Cheney Ni <cheneyni@google.com> Change-Id: I6736b02ae622fb618cffb52e25ace50ec6c34940
-rw-r--r--nitrous.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nitrous.c b/nitrous.c
index 0c78436..71acd37 100644
--- a/nitrous.c
+++ b/nitrous.c
@@ -377,6 +377,9 @@ static int nitrous_rfkill_set_power(void *data, bool blocked)
}
lpm->rfkill_blocked = blocked;
+ /* wait for device to power cycle and come out of reset */
+ usleep_range(10000, 20000);
+
return 0;
}