|
@@ -125,6 +125,9 @@ static inline struct sk_buff *hci_uart_dequeue(struct hci_uart *hu)
|
|
|
|
|
|
int hci_uart_tx_wakeup(struct hci_uart *hu)
|
|
int hci_uart_tx_wakeup(struct hci_uart *hu)
|
|
{
|
|
{
|
|
|
|
+ if (!test_bit(HCI_UART_PROTO_READY, &hu->flags))
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
if (test_and_set_bit(HCI_UART_SENDING, &hu->tx_state)) {
|
|
if (test_and_set_bit(HCI_UART_SENDING, &hu->tx_state)) {
|
|
set_bit(HCI_UART_TX_WAKEUP, &hu->tx_state);
|
|
set_bit(HCI_UART_TX_WAKEUP, &hu->tx_state);
|
|
return 0;
|
|
return 0;
|