drivers: mbox: nrf_vevif_event_tx: Fix errata 16 workaround
Pend until requested event is set before clearing it. Without that check event could be cleared too early and APP core is not waken up. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
ceb4298566
commit
841e852513
@ -40,7 +40,7 @@ static int vevif_event_tx_send(const struct device *dev, uint32_t id, const stru
|
||||
nrf_vpr_csr_vevif_events_trigger(BIT(id));
|
||||
|
||||
#if defined(CONFIG_MBOX_NRF_VEVIF_EVENT_USE_54L_ERRATA_16)
|
||||
while (!nrf_vpr_csr_vevif_events_get()) {
|
||||
while (!(nrf_vpr_csr_vevif_events_get() & BIT(id))) {
|
||||
;
|
||||
}
|
||||
nrf_vpr_csr_vevif_events_set(0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user