Skip to content

Commit c172b0d

Browse files
committed
ipc: fix ipc reply for CTX_RESTORE
fix ipc reply in the ipc handler placeholder for CTX_RESTORE to prevent expected reply size mismatch error. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent 956585e commit c172b0d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/ipc/handler.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,13 +581,14 @@ static int ipc_pm_context_save(uint32_t header)
581581

582582
static int ipc_pm_context_restore(uint32_t header)
583583
{
584-
// struct sof_ipc_pm_ctx pm_ctx = _ipc->comp_data;
584+
struct sof_ipc_pm_ctx *pm_ctx = _ipc->comp_data;
585585

586586
trace_ipc("PMr");
587587

588-
/* now restore the context */
588+
/* restore context placeholder */
589+
mailbox_hostbox_write(0, pm_ctx, sizeof(*pm_ctx));
589590

590-
return 0;
591+
return 1;
591592
}
592593

593594
static int ipc_glb_pm_message(uint32_t header)

0 commit comments

Comments
 (0)