Skip to content

Commit 639bccf

Browse files
dssengkartben
authored andcommitted
Bluetooth: drivers: make H4 and H5 follow CONFIG_BT_HCI_INIT_PRIORITY
In some cases UART drivers might have too high init priorities so HCI must be initialized even later if used with those. One example is zephyr,native-tty-uart. Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
1 parent 1e27c46 commit 639bccf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/bluetooth/hci/h4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,6 @@ static DEVICE_API(bt_hci, h4_driver_api) = {
612612
}, \
613613
}; \
614614
DEVICE_DT_INST_DEFINE(inst, NULL, NULL, &h4_data_##inst, &h4_config_##inst, \
615-
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &h4_driver_api)
615+
POST_KERNEL, CONFIG_BT_HCI_INIT_PRIORITY, &h4_driver_api)
616616

617617
DT_INST_FOREACH_STATUS_OKAY(BT_UART_DEVICE_INIT)

drivers/bluetooth/hci/h5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ static DEVICE_API(bt_hci, h5_driver_api) = {
804804
}; \
805805
static struct h5_data h5_##inst; \
806806
DEVICE_DT_INST_DEFINE(inst, NULL, NULL, &h5_##inst, &h5_config_##inst, \
807-
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &h5_driver_api)
807+
POST_KERNEL, CONFIG_BT_HCI_INIT_PRIORITY, &h5_driver_api)
808808

809809

810810
DT_INST_FOREACH_STATUS_OKAY(BT_UART_DEVICE_INIT)

0 commit comments

Comments
 (0)