Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7ba4938 authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Kalyan Thota
Browse files

msm: mdss: Ensure HW init program after resume



Currently, MDP and VBIF settings are not getting programmed
after resuming from suspend due to which it gets reset to
default settings. Fix this to ensure these settings are
programmed after resume.

Change-Id: Ice00d2eaac7adde9583c9a89e8b794e3e889361d
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 9da4ddc1
Loading
Loading
Loading
Loading
+7 −10
Original line number Original line Diff line number Diff line
@@ -1311,7 +1311,6 @@ int mdss_mdp_overlay_start(struct msm_fb_data_type *mfd)
{
{
	int rc;
	int rc;
	struct mdss_overlay_private *mdp5_data = mfd_to_mdp5_data(mfd);
	struct mdss_overlay_private *mdp5_data = mfd_to_mdp5_data(mfd);
	struct mdss_data_type *mdata = mdss_mdp_get_mdata();
	struct mdss_mdp_ctl *ctl = mdp5_data->ctl;
	struct mdss_mdp_ctl *ctl = mdp5_data->ctl;


	if (mdss_mdp_ctl_is_power_on(ctl)) {
	if (mdss_mdp_ctl_is_power_on(ctl)) {
@@ -1356,7 +1355,6 @@ int mdss_mdp_overlay_start(struct msm_fb_data_type *mfd)
	 * This is not needed when continuous splash screen is enabled since
	 * This is not needed when continuous splash screen is enabled since
	 * we would have called in to TZ to restore security configs from LK.
	 * we would have called in to TZ to restore security configs from LK.
	 */
	 */
	if (!mdata->mdss_util->iommu_attached()) {
	if (!mfd->panel_info->cont_splash_enabled) {
	if (!mfd->panel_info->cont_splash_enabled) {
		rc = mdss_iommu_ctrl(1);
		rc = mdss_iommu_ctrl(1);
		if (IS_ERR_VALUE(rc)) {
		if (IS_ERR_VALUE(rc)) {
@@ -1366,7 +1364,6 @@ int mdss_mdp_overlay_start(struct msm_fb_data_type *mfd)
		mdss_hw_init(mdss_res);
		mdss_hw_init(mdss_res);
		mdss_iommu_ctrl(0);
		mdss_iommu_ctrl(0);
	}
	}
	}


	/* Restore any previously configured PP features by resetting the dirty
	/* Restore any previously configured PP features by resetting the dirty
	 * bits for enabled features. The dirty bits will be consumed during the
	 * bits for enabled features. The dirty bits will be consumed during the