Skip to content

Commit

Permalink
ipc4: ipc atomic state should be reset after timeout.
Browse files Browse the repository at this point in the history
reset the atomic ipc4 message delay state after any timeout error.

Signed-off-by: Liam Girdwood <[email protected]>
  • Loading branch information
lrgirdwo authored and lgirdwood committed Aug 3, 2023
1 parent 909a327 commit 767702f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ipc/ipc4/handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ static int ipc_wait_for_compound_msg(void)
k_sleep(Z_TIMEOUT_MS(10));

if (!try_count--) {
atomic_set(&msg_data.delayed_reply, 0);
ipc_cmd_err(&ipc_tr, "ipc4: failed to wait schedule thread");
return IPC4_FAILURE;
}
Expand Down

0 comments on commit 767702f

Please sign in to comment.