diff options
author | Wen-chien Jesse Sung <jesse.sung@canonical.com> | 2017-01-10 04:46:28 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2017-02-16 17:32:25 +0100 |
commit | 3af3a594e111474fab03d872f41760e10d4c17c4 (patch) | |
tree | 631acc093426463a725aebe50f9d9a7d3305f1aa /drivers/bluetooth/btbcm.c | |
parent | Bluetooth: btusb: Add support for 413c:8143 (diff) | |
download | linux-3af3a594e111474fab03d872f41760e10d4c17c4.tar.xz linux-3af3a594e111474fab03d872f41760e10d4c17c4.zip |
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/btbcm.c')
-rw-r--r-- | drivers/bluetooth/btbcm.c | 3 |
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; } |