summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorWen-chien Jesse Sung <jesse.sung@canonical.com>2017-01-10 06:46:28 +0300
committerMarcel Holtmann <marcel@holtmann.org>2017-02-16 19:32:25 +0300
commit3af3a594e111474fab03d872f41760e10d4c17c4 (patch)
tree631acc093426463a725aebe50f9d9a7d3305f1aa /drivers/bluetooth
parentfdfddc601713d4ed564b0bd25b29415bd622020a (diff)
downloadlinux-3af3a594e111474fab03d872f41760e10d4c17c4.tar.xz
Bluetooth: btbcm: Add a delay for module reset
Some btbcm devices require more time to complete its reset process. They won't reply any hci command until reset is done. [ 17.218554] Bluetooth: hci0 command 0x1001 tx timeout [ 25.214999] Bluetooth: hci0: BCM: Reading local version info failed (-110) Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btbcm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
index fdb44829ab6f..ba3dd2eafc09 100644
--- a/drivers/bluetooth/btbcm.c
+++ b/drivers/bluetooth/btbcm.c
@@ -178,6 +178,9 @@ static int btbcm_reset(struct hci_dev *hdev)
}
kfree_skb(skb);
+ /* 100 msec delay for module to complete reset process */
+ msleep(100);
+
return 0;
}