]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_mrvl: Wait for final ack before switching baudrate
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 14 Jun 2019 07:23:50 +0000 (09:23 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 6 Jul 2019 10:53:56 +0000 (12:53 +0200)
commit81f930de3778cce77859636f4cd37fd943b5fa4d
treef5e6005348f34ff605913a7154c9d044901f56be
parent55a96cb4253b36e85e6f51b129d2123a879b7f0f
Bluetooth: hci_mrvl: Wait for final ack before switching baudrate

For the Marvell HCI UART we have to upload two firmware files. The first
one is only for switching the baudrate of the device to a higher
baudrate. After the baudrate switching firmware has been uploaded the
device waits for a final ack (0x5a) before actually switching the
baudrate. To send this final ack with the old baudrate give the hci
ldisc workqueue a chance to run before switching the baudrate. Without
this the final ack will never be received by the device and firmware
upload fails.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_mrvl.c