Skip to content

Commit 59616c0

Browse files
cvinayaknashif
authored andcommitted
Bluetooth: controller: openisa: Fix unsupported ULL LLL Prio config
Fix for OpenISA rv32m1_vega_ri5cy board not supporting different IRQ Priority levels for LLL, ULL_HIGH and ULL_LOW execution contexts. Fixes #31937. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 3664cb9 commit 59616c0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

subsys/bluetooth/controller/Kconfig.ll_sw_split

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ config BT_LLL_VENDOR_NORDIC
4040
select BT_CTLR_XTAL_ADVANCED_SUPPORT
4141
select BT_CTLR_SCHED_ADVANCED_SUPPORT
4242
select BT_CTLR_TIFS_HW_SUPPORT
43+
select BT_CTLR_ULL_LLL_PRIO_SUPPORT
4344

4445
default y
4546
help
@@ -66,6 +67,9 @@ config BT_CTLR_SCHED_ADVANCED_SUPPORT
6667
config BT_CTLR_TIFS_HW_SUPPORT
6768
bool
6869

70+
config BT_CTLR_ULL_LLL_PRIO_SUPPORT
71+
bool
72+
6973
config BT_CTLR_RX_PRIO_STACK_SIZE
7074
# Controller's Co-Operative high priority Rx thread stack size.
7175
int "High priority Rx thread stack size"
@@ -274,25 +278,25 @@ config BT_CTLR_SCHED_ADVANCED
274278
leading to skipped events amongst active roles.
275279

276280
config BT_CTLR_LLL_PRIO
277-
int "Lower Link Layer (Radio) IRQ priority" if !BT_CTLR_ZLI
281+
int "Lower Link Layer (Radio) IRQ priority" if (BT_CTLR_ULL_LLL_PRIO_SUPPORT && !BT_CTLR_ZLI)
278282
range 0 3 if SOC_SERIES_NRF51X
279283
range 0 6 if (SOC_SERIES_NRF52X || SOC_SERIES_NRF53X)
280284
default 0
281285
help
282286
The interrupt priority for event preparation and radio IRQ.
283287

284288
config BT_CTLR_ULL_HIGH_PRIO
285-
int "Upper Link Layer High IRQ priority"
289+
int "Upper Link Layer High IRQ priority" if BT_CTLR_ULL_LLL_PRIO_SUPPORT
286290
range BT_CTLR_LLL_PRIO 3 if SOC_SERIES_NRF51X
287291
range BT_CTLR_LLL_PRIO 6 if (SOC_SERIES_NRF52X || SOC_SERIES_NRF53X)
288-
default BT_CTLR_LLL_PRIO if (BT_CTLR_ZLI || BT_CTLR_LOW_LAT)
292+
default BT_CTLR_LLL_PRIO if (!BT_CTLR_ULL_LLL_PRIO_SUPPORT || BT_CTLR_ZLI || BT_CTLR_LOW_LAT)
289293
default 1
290294
help
291295
The interrupt priority for Ticker's Worker IRQ and Upper Link Layer
292296
higher priority functions.
293297

294298
config BT_CTLR_ULL_LOW_PRIO
295-
int "Upper Link Layer Low IRQ priority"
299+
int "Upper Link Layer Low IRQ priority" if BT_CTLR_ULL_LLL_PRIO_SUPPORT
296300
range BT_CTLR_ULL_HIGH_PRIO 3 if SOC_SERIES_NRF51X
297301
range BT_CTLR_ULL_HIGH_PRIO 6 if (SOC_SERIES_NRF52X || SOC_SERIES_NRF53X)
298302
default BT_CTLR_ULL_HIGH_PRIO

0 commit comments

Comments
 (0)