From 81eae8886a9349becef144cc3b336cf6274308e1 Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Wed, 19 Sep 2018 09:51:54 -0700 Subject: [PATCH] ipc: set flag to disable memory banks before entering D3 This could potentially lead to power savings when the system is suspended. Signed-off-by: Ranjani Sridharan --- src/ipc/handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipc/handler.c b/src/ipc/handler.c index 442a8a1b1..a53c715c2 100644 --- a/src/ipc/handler.c +++ b/src/ipc/handler.c @@ -551,6 +551,7 @@ static int ipc_pm_context_size(uint32_t header) static int ipc_pm_context_save(uint32_t header) { struct sof_ipc_pm_ctx *pm_ctx = _ipc->comp_data; + struct intel_ipc_data *iipc = ipc_get_drvdata(_ipc); trace_ipc("PMs"); @@ -579,7 +580,7 @@ static int ipc_pm_context_save(uint32_t header) /* write the context to the host driver */ mailbox_hostbox_write(0, pm_ctx, sizeof(*pm_ctx)); - //iipc->pm_prepare_D3 = 1; + iipc->pm_prepare_D3 = 1; return 1; }