diff options
author | Hans de Goede <hdegoede@redhat.com> | 2018-05-27 22:04:53 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2018-05-30 09:49:20 +0300 |
commit | fdee6d8fc630fa82e06d792f3adadab3bd48666e (patch) | |
tree | b8359a7c76af3ec799f0f1720b92899ae2f08ad1 /drivers/bluetooth/hci_serdev.c | |
parent | e9ca08074ddcdcc3abacbfca888dba3a110e4453 (diff) | |
download | linux-fdee6d8fc630fa82e06d792f3adadab3bd48666e.tar.xz |
Bluetooth: hci_serdev: Fix HCI_UART_INIT_PENDING not working
Init hci_uart->init_ready so that hci_uart_init_ready() works properly.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_serdev.c')
-rw-r--r-- | drivers/bluetooth/hci_serdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c index 7a3d6d636192..aa2543b3c286 100644 --- a/drivers/bluetooth/hci_serdev.c +++ b/drivers/bluetooth/hci_serdev.c @@ -308,6 +308,7 @@ int hci_uart_register_device(struct hci_uart *hu, hdev->bus = HCI_UART; hci_set_drvdata(hdev, hu); + INIT_WORK(&hu->init_ready, hci_uart_init_work); INIT_WORK(&hu->write_work, hci_uart_write_work); percpu_init_rwsem(&hu->proto_lock); |