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

Commit 6ec6b540 authored by Sachin Bhayare's avatar Sachin Bhayare Committed by Krishna Manikandan
Browse files

msm: mdss: fix black screen issue during lk to kernel transition



While fixing device boot issue with video mode panel.
New logic was added to prevent the clock turn off for video mode
panel. Which updated the return value of mdp3_is_display_on and
mdp3_panel_get_intf_status function and resulted on black screen
issue on command mode because splash status was not reflected
correctly in the driver.
Fix the issue by avoiding return value update in above
function calls.

Change-Id: Ia255712dad083ec17b863d1ae7875ce04cf4aae5
Signed-off-by: default avatarSachin Bhayare <sachin.bhayare@codeaurora.org>
parent d69f5b83
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -2194,10 +2194,11 @@ 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)

	if (pdata->panel_info.type == MIPI_CMD_PANEL) {
		if (mdp3_clk_enable(0, 0))
			pr_err("fail to turn off MDP core clks\n");
	}
	return rc;
}

@@ -2667,10 +2668,10 @@ 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)
		if (mdp3_clk_enable(0, 0))
			pr_err("fail to turn off MDP core clks\n");
	}
	return rc;