disp: msm: move MDSS resource voting to probe

sync_state driver disables any resources that
don't have any votes after driver probe is completed.
Move MDSS resource votes to probe so that any resources
that are needed for continuous splash are intact until
the bind of all the components is complete.

Change-Id: I0056bf1ec56bcd6a1b620a81143d4b49d7ea2921
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
This commit is contained in:
Chandan Uddaraju
2020-04-17 15:45:13 -07:00
parent fa8f623802
commit eaa458b165
2 changed files with 11 additions and 10 deletions

View File

@@ -3491,15 +3491,9 @@ static int sde_kms_hw_init(struct msm_kms *kms)
if (rc)
SDE_DEBUG("sde splash data fetch failed: %d\n", rc);
rc = pm_runtime_get_sync(sde_kms->dev->dev);
if (rc < 0) {
SDE_ERROR("resource enable failed: %d\n", rc);
goto error;
}
rc = _sde_kms_hw_init_blocks(sde_kms, dev, priv);
if (rc)
goto hw_init_err;
goto error;
dev->mode_config.min_width = sde_kms->catalog->min_display_width;
dev->mode_config.min_height = sde_kms->catalog->min_display_height;
@@ -3546,8 +3540,6 @@ static int sde_kms_hw_init(struct msm_kms *kms)
return 0;
hw_init_err:
pm_runtime_put_sync(sde_kms->dev->dev);
error:
_sde_kms_hw_destroy(sde_kms, platformdev);
end: