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

Commit 51ca09b5 authored by Vara Reddy's avatar Vara Reddy Committed by Shashank Babu Chinta Venkata
Browse files

drm/msm/dsi-staging: check esd reg readback value correctly



Fix issue around checking esd register read back value with
the expected value from the dtsi entries.

Change-Id: I8aeccc3acb61f10c3141e42a15eb6c674af251e6
CRs-Fixed: 2183397
Signed-off-by: default avatarVara Reddy <varar@codeaurora.org>
Signed-off-by: default avatarShashank Babu Chinta Venkata <sbchin@codeaurora.org>
parent 5e23ea87
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -484,7 +484,6 @@ static bool dsi_display_validate_reg_read(struct dsi_panel *panel)
	int i, j = 0;
	int len = 0, *lenp;
	int group = 0, count = 0;
	struct dsi_display_mode *mode;
	struct drm_panel_esd_config *config;

	if (!panel)
@@ -493,8 +492,7 @@ static bool dsi_display_validate_reg_read(struct dsi_panel *panel)
	config = &(panel->esd_config);

	lenp = config->status_valid_params ?: config->status_cmds_rlen;
	mode = panel->cur_mode;
	count = mode->priv_info->cmd_sets[DSI_CMD_SET_PANEL_STATUS].count;
	count = config->status_cmd.count;

	for (i = 0; i < count; i++)
		len += lenp[i];