]> asedeno.scripts.mit.edu Git - linux.git/commit
Bluetooth: hci_qca: Retry btsoc initialize when it fails
authorRocky Liao <rjliao@codeaurora.org>
Wed, 15 Jan 2020 08:55:51 +0000 (16:55 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 15 Jan 2020 21:36:57 +0000 (22:36 +0100)
commitbb2500ab0270aa0d1d39614f08f4f9a2dc0df8c1
tree7302c39690fdd0b82ff09ccb7c62090a421d71d8
parent5559904ccc0867a0ce796761681e40defe4a5f44
Bluetooth: hci_qca: Retry btsoc initialize when it fails

This patch adds the retry of btsoc initialization when it fails. There are
reports that the btsoc initialization may fail on some platforms but the
repro ratio is very low. The symptoms is the firmware downloading failed
due to the UART write timed out. The failure may be caused by UART,
platform HW or the btsoc itself but it's very difficlut to root cause,
given the repro ratio is very low. Add a retry for the btsoc initialization
can work around most of the failures and make Bluetooth finally works.

Signed-off-by: Rocky Liao <rjliao@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c