mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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:
parent
74e59e97a7
commit
2653c8e813
2 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue