]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Bluetooth: btbcm: Add a delay for module reset
authorWen-chien Jesse Sung <jesse.sung@canonical.com>
Tue, 10 Jan 2017 03:46:28 +0000 (11:46 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 16 Feb 2017 16:32:25 +0000 (17:32 +0100)
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>
drivers/bluetooth/btbcm.c

index fdb44829ab6ff7009597a1b0080b741bcd09b9b9..ba3dd2eafc0954a344337fe64013d986cfad15b3 100644 (file)
@@ -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;
 }