From ca61452b8ebb5b0f08bf05d70fc2dc90ef361960 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 7 Jul 2017 14:40:37 +0300 Subject: [PATCH] Bluetooth: drivers: Make RX thread priority consistent The controller and host-side RX threads recently had their priorities lowered to 8. Make the driver RX threads consistent with this. Signed-off-by: Johan Hedberg --- drivers/bluetooth/hci/h4.c | 2 +- drivers/bluetooth/hci/h5.c | 2 +- drivers/bluetooth/hci/spi.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/hci/h4.c b/drivers/bluetooth/hci/h4.c index d109c55beba..68e405b4ea1 100644 --- a/drivers/bluetooth/hci/h4.c +++ b/drivers/bluetooth/hci/h4.c @@ -441,7 +441,7 @@ static int h4_open(void) k_thread_create(&rx_thread_data, rx_thread_stack, K_THREAD_STACK_SIZEOF(rx_thread_stack), rx_thread, - NULL, NULL, NULL, K_PRIO_COOP(7), 0, K_NO_WAIT); + NULL, NULL, NULL, K_PRIO_COOP(8), 0, K_NO_WAIT); return 0; } diff --git a/drivers/bluetooth/hci/h5.c b/drivers/bluetooth/hci/h5.c index 0807da059a2..1ebc19591bf 100644 --- a/drivers/bluetooth/hci/h5.c +++ b/drivers/bluetooth/hci/h5.c @@ -726,7 +726,7 @@ static void h5_init(void) k_thread_create(&rx_thread_data, rx_stack, K_THREAD_STACK_SIZEOF(rx_stack), (k_thread_entry_t)rx_thread, - NULL, NULL, NULL, K_PRIO_COOP(7), 0, K_NO_WAIT); + NULL, NULL, NULL, K_PRIO_COOP(8), 0, K_NO_WAIT); /* Unack queue */ k_fifo_init(&h5.unack_queue); diff --git a/drivers/bluetooth/hci/spi.c b/drivers/bluetooth/hci/spi.c index cd1ba952ddb..67adf523fad 100644 --- a/drivers/bluetooth/hci/spi.c +++ b/drivers/bluetooth/hci/spi.c @@ -328,7 +328,7 @@ static int bt_spi_open(void) k_thread_create(&rx_thread_data, rx_stack, K_THREAD_STACK_SIZEOF(rx_stack), (k_thread_entry_t)bt_spi_rx_thread, - NULL, NULL, NULL, K_PRIO_COOP(7), 0, K_NO_WAIT); + NULL, NULL, NULL, K_PRIO_COOP(8), 0, K_NO_WAIT); /* Take BLE out of reset */ gpio_pin_write(rst_dev, GPIO_RESET_PIN, 1);