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

Commit d21901db authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

msm: mdss: fix split_mode setting during mode switch



During mode switch, split_mode was set to pp split by checking
if the panel is in split_mode and MDP supports pp split. This
leads to faulty configuration as pp split should be set only
when the panel setting has pp split and MDP support it. Add
proper checks to set the split mode correctly.

Change-Id: I2f2c10bebcb3ce7d38c37ff09a25d864a89e646a
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 090e59ba
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -5027,13 +5027,15 @@ static int mdss_mdp_update_panel_info(struct msm_fb_data_type *mfd,
		mdss_mdp_ctl_destroy(mdp5_data->ctl);
		mdp5_data->ctl = NULL;
	} else {
		if (is_panel_split(mfd) && mdp5_data->mdata->has_pingpong_split)
		pdata = dev_get_platdata(&mfd->pdev->dev);

		if (mdp5_data->mdata->has_pingpong_split &&
			pdata->panel_info.use_pingpong_split)
			mfd->split_mode = MDP_PINGPONG_SPLIT;
		/*
		 * Dynamic change so we need to reconfig instead of
		 * destroying current ctrl sturcture.
		 */
		pdata = dev_get_platdata(&mfd->pdev->dev);
		mdss_mdp_ctl_reconfig(ctl, pdata);

		sctl = mdss_mdp_get_split_ctl(ctl);