android_kernel_oneplus_msm8998/drivers/bluetooth
Matthias Kaehlcke 5694f0d1cb Bluetooth: btqca: Add a short delay before downloading the NVM
[ Upstream commit 8059ba0bd0e4694e51c2ee6438a77b325f06c0d5 ]

On WCN3990 downloading the NVM sometimes fails with a "TLV response
size mismatch" error:

[  174.949955] Bluetooth: btqca.c:qca_download_firmware() hci0: QCA Downloading qca/crnv21.bin
[  174.958718] Bluetooth: btqca.c:qca_tlv_send_segment() hci0: QCA TLV response size mismatch

It seems the controller needs a short time after downloading the
firmware before it is ready for the NVM. A delay as short as 1 ms
seems sufficient, make it 10 ms just in case. No event is received
during the delay, hence we don't just silently drop an extra event.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-09-10 10:29:46 +01:00
..
ath3k.c
bcm203x.c
bfusb.c
bluecard_cs.c
bpa10x.c
bt3c_cs.c
btbcm.c Bluetooth: btbcm: Add entry for BCM4335C0 UART bluetooth 2018-11-21 09:27:31 +01:00
btbcm.h
btintel.c
btintel.h
btmrvl_debugfs.c
btmrvl_drv.h
btmrvl_main.c
btmrvl_sdio.c
btmrvl_sdio.h
btqca.c Bluetooth: btqca: Add a short delay before downloading the NVM 2019-09-10 10:29:46 +01:00
btqca.h
btrtl.c
btrtl.h
btsdio.c Bluetooth: btsdio: Do not bind to non-removable BCM43341 2018-02-16 20:09:46 +01:00
btuart_cs.c
btusb.c Bluetooth: Add a new Realtek 8723DE ID 0bda:b009 2018-10-10 08:52:04 +02:00
btwilink.c
dtl1_cs.c
hci_ath.c Bluetooth: hci_uart: check for missing tty operations 2019-08-04 09:35:02 +02:00
hci_bcm.c Bluetooth: hci_uart: check for missing tty operations 2019-08-04 09:35:02 +02:00
hci_bcsp.c Bluetooth: hci_bcsp: Fix memory leak in rx_skb 2019-08-04 09:34:48 +02:00
hci_h4.c
hci_h5.c
hci_intel.c Bluetooth: hci_uart: check for missing tty operations 2019-08-04 09:35:02 +02:00
hci_ldisc.c Bluetooth: hci_uart: check for missing tty operations 2019-08-04 09:35:02 +02:00
hci_ll.c
hci_qca.c Bluetooth: hci_qca: Fix "Sleep inside atomic section" warning 2018-08-06 16:24:32 +02:00
hci_uart.h Bluetooth: hci_uart: check for missing tty operations 2019-08-04 09:35:02 +02:00
hci_vhci.c
Kconfig Revert "Bluetooth: h5: Fix missing dependency on BT_HCIUART_SERDEV" 2018-11-27 16:08:01 +01:00
Makefile