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 <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2018-09-19 09:51:54 -07:00 committed by Liam Girdwood
parent 2460b01627
commit 81eae8886a
1 changed files with 2 additions and 1 deletions

View File

@ -551,6 +551,7 @@ static int ipc_pm_context_size(uint32_t header)
static int ipc_pm_context_save(uint32_t header) static int ipc_pm_context_save(uint32_t header)
{ {
struct sof_ipc_pm_ctx *pm_ctx = _ipc->comp_data; struct sof_ipc_pm_ctx *pm_ctx = _ipc->comp_data;
struct intel_ipc_data *iipc = ipc_get_drvdata(_ipc);
trace_ipc("PMs"); trace_ipc("PMs");
@ -579,7 +580,7 @@ static int ipc_pm_context_save(uint32_t header)
/* write the context to the host driver */ /* write the context to the host driver */
mailbox_hostbox_write(0, pm_ctx, sizeof(*pm_ctx)); mailbox_hostbox_write(0, pm_ctx, sizeof(*pm_ctx));
//iipc->pm_prepare_D3 = 1; iipc->pm_prepare_D3 = 1;
return 1; return 1;
} }