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

Commit cfa1f491 authored by Satya Rama Aditya Pinapala's avatar Satya Rama Aditya Pinapala
Browse files

disp: msm: dsi: fix ESD checks for sim and vid panel modes



Enure that ESD check doesn't result in a false negative while
booting up with a simulation panel or if TE based check is enabled
and panel switches it operating mode to video.

Change-Id: I62ff088f513d28d2883ce5a6d22f8bac1783fcd2
Signed-off-by: default avatarSatya Rama Aditya Pinapala <psraditya30@codeaurora.org>
parent 43cafa80
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -842,7 +842,8 @@ int dsi_display_check_status(struct drm_connector *connector, void *display,

	status_mode = panel->esd_config.status_mode;

	if (status_mode == ESD_MODE_SW_SIM_SUCCESS)
	if ((status_mode == ESD_MODE_SW_SIM_SUCCESS) ||
			(dsi_display->sw_te_using_wd))
		goto release_panel_lock;

	if (status_mode == ESD_MODE_SW_SIM_FAILURE) {
@@ -854,6 +855,9 @@ int dsi_display_check_status(struct drm_connector *connector, void *display,
	if (te_check_override)
		te_rechecks = MAX_TE_RECHECKS;

	if (panel->panel_mode == DSI_OP_VIDEO_MODE)
		te_rechecks = 0;

	ret = dsi_display_clk_ctrl(dsi_display->dsi_clk_handle,
		DSI_ALL_CLKS, DSI_CLK_ON);
	if (ret)