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 fdb4482..ba3dd2e 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;
 }