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

Commit 694e9b60 authored by Zohaib Alam's avatar Zohaib Alam
Browse files

msm: mdss: Allow display commit in DCM state for CMD panels



Allow display-commit in DCM state for command mode panels. QDCM
tool requires explicit display kickoff during the calibration
stage in which the panel power is turned off.

Change-Id: Id6c7a0becf488ad2bfe9652b05d781384109f5c4
Signed-off-by: default avatarZohaib Alam <zalam@codeaurora.org>
parent 38fb8d37
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -2215,7 +2215,11 @@ static int mdss_fb_pan_display_ex(struct fb_info *info,
	u32 wait_for_finish = disp_commit->wait_for_finish;
	int ret = 0;

	if (!mfd || (!mfd->op_enable) || (!mfd->panel_power_on))
	if (!mfd || (!mfd->op_enable))
		return -EPERM;

	if ((!mfd->panel_power_on) && !((mfd->dcm_state == DCM_ENTER) &&
				(mfd->panel.type == MIPI_CMD_PANEL)))
		return -EPERM;

	if (var->xoffset > (info->var.xres_virtual - info->var.xres))
@@ -2267,7 +2271,11 @@ static int mdss_fb_pan_display_sub(struct fb_var_screeninfo *var,
{
	struct msm_fb_data_type *mfd = (struct msm_fb_data_type *)info->par;

	if ((!mfd->op_enable) || (!mfd->panel_power_on))
	if (!mfd->op_enable)
		return -EPERM;

	if ((!mfd->panel_power_on) && !((mfd->dcm_state == DCM_ENTER) &&
				(mfd->panel.type == MIPI_CMD_PANEL)))
		return -EPERM;

	if (var->xoffset > (info->var.xres_virtual - info->var.xres))
+2 −1
Original line number Diff line number Diff line
@@ -1800,7 +1800,8 @@ static void mdss_mdp_overlay_pan_display(struct msm_fb_data_type *mfd)
	if (mutex_lock_interruptible(&mdp5_data->ov_lock))
		return;

	if (!mfd->panel_power_on) {
	if ((!mfd->panel_power_on) && !((mfd->dcm_state == DCM_ENTER) &&
				(mfd->panel.type == MIPI_CMD_PANEL))) {
		mutex_unlock(&mdp5_data->ov_lock);
		return;
	}