Skip to content

Commit 121d6ed

Browse files
asmellbyjhedberg
authored andcommitted
modules: hal_silabs: Set correct SE mailbox priority
The SE mailbox priority must be lower than the base priority to ensure mutual exclusion. Interpret the Devicetree priority value as for a normal interrupt, not a zero-latency interrupt. This issue was masked by the mailbox priority previously being 3 in SoC Devicetree files, which made it have a normal priority despite being interpreted as a zero-latency interrupt. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
1 parent 94c285a commit 121d6ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/hal_silabs/simplicity_sdk/inc/sli_psec_osal_zephyr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
#define SLI_PSEC_OSAL_NON_BLOCKING (0)
1313

1414
#if DT_IRQ_HAS_NAME(DT_NODELABEL(se), sembrx)
15-
#define SE_MANAGER_USER_SEMBRX_IRQ_PRIORITY DT_IRQ_BY_NAME(DT_NODELABEL(se), sembrx, priority)
15+
#define SE_MANAGER_USER_SEMBRX_IRQ_PRIORITY \
16+
(DT_IRQ_BY_NAME(DT_NODELABEL(se), sembrx, priority) + CONFIG_ZERO_LATENCY_LEVELS + 1)
1617
#endif
1718

1819
typedef enum {

0 commit comments

Comments
 (0)