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

Commit 05bc74dd authored by Sravanthi Kollukuduru's avatar Sravanthi Kollukuduru Committed by Krishna Manikandan
Browse files

msm: mdss: fix black screen issue on 8909MTP



Black screen is seen on command mode panel because clock
MDP are getting turned off during probe.
Keep the clock on for video mode panel when splash is enabled.

Change-Id: I6cd9831f068704a61f8c0667cdd72e1798c68349
Signed-off-by: default avatarSravanthi Kollukuduru <skolluku@codeaurora.org>
parent 5c86c695
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -2195,7 +2195,7 @@ static int mdp3_is_display_on(struct mdss_panel_data *pdata)
	}

	mdp3_res->splash_mem_addr = MDP3_REG_READ(MDP3_REG_DMA_P_IBUF_ADDR);

	if (pdata->panel_info.type == MIPI_CMD_PANEL)
		rc = mdp3_clk_enable(0, 0);
	if (rc)
		pr_err("fail to turn off MDP core clks\n");
@@ -2648,10 +2648,12 @@ int mdp3_panel_get_intf_status(u32 disp_num, u32 intf_type)
	status = (MDP3_REG_READ(MDP3_REG_DMA_P_CONFIG) & 0x180000);
	/* DSI video mode or command mode */
	rc = (status == 0x180000) || (status == 0x080000);

	/* For Video mode panel do not disable clock */
	if (status == 0x80000) {
		rc = mdp3_clk_enable(0, 0);
		if (rc)
			pr_err("fail to turn off MDP core clks\n");
	}
	return rc;
}