disp: msm: add support for hibernation

Enable support for hibernation config.

Change-Id: Ib0e2ca6ac57aec566171b2f72e2b6822e2d9fde2
Signed-off-by: Sai Srujana Oruganti <quic_osaisruj@quicinc.com>
This commit is contained in:
Sai Srujana Oruganti 2022-06-03 16:56:04 +05:30
commit 2653c8e813
2 changed files with 5 additions and 4 deletions

View file

@ -2716,7 +2716,7 @@ error:
return rc;
}
#ifdef CONFIG_DEEPSLEEP
#if defined(CONFIG_DEEPSLEEP) || defined(CONFIG_HIBERNATION)
int dsi_display_unset_clk_src(struct dsi_display *display)
{
int rc = 0;

View file

@ -3779,6 +3779,7 @@ static int _sde_kms_pm_deepsleep_helper(struct sde_kms *sde_kms, bool enter)
if (mem_sleep_current != PM_SUSPEND_MEM)
return 0;
/*Applicable for both deepsleep and hibernation*/
SDE_INFO("Deepsleep : enter %d\n", enter);
for (i = 0; i < sde_kms->dsi_display_count; i++) {
@ -3787,9 +3788,9 @@ static int _sde_kms_pm_deepsleep_helper(struct sde_kms *sde_kms, bool enter)
if (enter) {
/* During deepsleep, clk_parent are reset at HW
* but sw caching is retained in clk framework. To
* maintain same state. unset parents and restore
/* During deepsleep/hibernation, clk_parent are reset
* at HW but sw caching is retained in clk framework.
* To maintain same state. unset parents and restore
* during exit.
*/
if (dsi_display->needs_clk_src_reset)