Commit 25d73f23 authored by Maksim Krasnyanskiy's avatar Maksim Krasnyanskiy

Bluetooth HCI UART driver fixes

- Don't call tx wakeup if uart protocol is not set.
parent 81100c46
...@@ -344,7 +344,8 @@ static void hci_uart_tty_wakeup(struct tty_struct *tty) ...@@ -344,7 +344,8 @@ static void hci_uart_tty_wakeup(struct tty_struct *tty)
if (tty != hu->tty) if (tty != hu->tty)
return; return;
hci_uart_tx_wakeup(hu); if (test_bit(HCI_UART_PROTO_SET, &hu->flags))
hci_uart_tx_wakeup(hu);
} }
/* hci_uart_tty_room() /* hci_uart_tty_room()
......
...@@ -68,7 +68,7 @@ struct hci_uart { ...@@ -68,7 +68,7 @@ struct hci_uart {
}; };
/* HCI_UART flag bits */ /* HCI_UART flag bits */
#define HCI_UART_PROTO_SET 0x00 #define HCI_UART_PROTO_SET 0
/* TX states */ /* TX states */
#define HCI_UART_SENDING 1 #define HCI_UART_SENDING 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment