提交 771fb4aa 编写于 作者: T Tim Jiang 提交者: Yang Yingliang

Bluetooth: btusb: fix bt fiwmare downloading failure issue for qca btsoc.

stable inclusion
from linux-4.19.198
commit 012a3944008fc774b1eae42be7e8dfc4ee2ab521

--------------------------------

[ Upstream commit 4f00bfb3 ]

This is btsoc timing issue, after host start to downloading bt firmware,
ep2 need time to switch from function acl to function dfu, so host add
20ms delay as workaround.
Signed-off-by: NTim Jiang <tjiang@codeaurora.org>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 6cc0f058
......@@ -2595,6 +2595,11 @@ static int btusb_setup_qca_download_fw(struct hci_dev *hdev,
sent += size;
count -= size;
/* ep2 need time to switch from function acl to function dfu,
* so we add 20ms delay here.
*/
msleep(20);
while (count) {
size = min_t(size_t, count, QCA_DFU_PACKET_LEN);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册