]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_ldisc: Add function to wait for characters to be sent
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 14 Jun 2019 07:23:49 +0000 (09:23 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 6 Jul 2019 10:53:56 +0000 (12:53 +0200)
commit55a96cb4253b36e85e6f51b129d2123a879b7f0f
tree765fb7b8865ae2ecadc9df3c2676ba42374f25e5
parentee71afbd6d0386f9203bfa1ae568c924cd0e26f9
Bluetooth: hci_ldisc: Add function to wait for characters to be sent

The hci UART line discipline sends its characters in a workqueue. Some
devices like the Marvell Bluetooth chips need to make sure that all
queued characters are sent before switching the baudrate. This adds
a function to synchronize with the workqueue.

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