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>
This commit is contained in:
Wen-chien Jesse Sung 2017-01-10 11:46:28 +08:00 коммит произвёл Marcel Holtmann
Родитель fdfddc6017
Коммит 3af3a594e1
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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;
}