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

Commit 45b5d8c1 authored by Kuogee Hsieh's avatar Kuogee Hsieh
Browse files

mdss: display: initialize panel_mode at mdss_dsi_ctrl_init



Initialize dsi controller's panel_mode at mdss_dsi_ctrl_init()
due to mdss_dsi_host_init() is not called during boot up if
continuous splash is enabled. An unnecessary timeout will happen
for dcs command send of command mode panel if panel_mode is
initialized as video mode.

Change-Id: I041abcebb9479f3d55f2f21d560aced6c4b77b91
Signed-off-by: default avatarKuogee Hsieh <khsieh@codeaurora.org>
parent 16103798
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -90,6 +90,8 @@ void mdss_dsi_ctrl_init(struct mdss_dsi_ctrl_pdata *ctrl)
		ctrl->ndx = DSI_CTRL_1;
	}

	ctrl->panel_mode = ctrl->panel_data.panel_info.mipi.mode;

	ctrl_list[ctrl->ndx] = ctrl;	/* keep it */

	if (ctrl->shared_pdata.broadcast_enable)
@@ -267,8 +269,6 @@ void mdss_dsi_host_init(struct mipi_panel_info *pinfo,

	pinfo->rgb_swap = DSI_RGB_SWAP_RGB;

	ctrl_pdata->panel_mode = pinfo->mode;

	if (pinfo->mode == DSI_VIDEO_MODE) {
		data = 0;
		if (pinfo->pulse_mode_hsa_he)