Skip to content

Commit 45eb5eb

Browse files
ppryga-nordiccarlescufi
authored andcommitted
mpsl: pm: Don't use the same bit for MRAM and PM requests
The LOW_LATENCY_PM_BIT and LOW_LATENCY_MRAM_BIT had the same value. The MPSL was notified about completion of low latency request before it actually happened. The if statement in m_register_latency() for MRAM always returned true because of use of the same bit number for both constants. Signed-off-by: Piotr Pryga <[email protected]> (cherry picked from commit af97a15)
1 parent a223b9a commit 45eb5eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/mpsl/pm/mpsl_pm_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static atomic_t m_pm_state = (atomic_val_t)MPSL_PM_UNINITIALIZED;
3737
#if defined(CONFIG_MPSL_PM_USE_MRAM_LATENCY_SERVICE)
3838
#define LOW_LATENCY_ATOMIC_BITS_NUM 2
3939
#define LOW_LATENCY_PM_BIT 0
40-
#define LOW_LATENCY_MRAM_BIT 0
40+
#define LOW_LATENCY_MRAM_BIT 1
4141
#define LOW_LATENCY_BITS_MASK 0x3
4242

4343
static ATOMIC_DEFINE(m_low_latency_req_state, LOW_LATENCY_ATOMIC_BITS_NUM);

0 commit comments

Comments
 (0)