Browse Source

disp: msm: dp: skip edid reading for mst branch

When DP is working in MST mode, reading native EDID from MST
branch is not a valid operation.

Change-Id: I297d2b25b2c3166d68ef3eba941ca787d8bce8d3
Signed-off-by: Xiaowen Wu <[email protected]>
Signed-off-by: Tatenda Chipeperekwa <[email protected]>
Tatenda Chipeperekwa 5 years ago
parent
commit
dbe4ebc8fd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      msm/dp/dp_panel.c

+ 5 - 0
msm/dp/dp_panel.c

@@ -1790,12 +1790,17 @@ static int dp_panel_read_sink_caps(struct dp_panel *dp_panel,
 		}
 		}
 	}
 	}
 
 
+	/* There is no need to read EDID from MST branch */
+	if (panel->parser->has_mst && dp_panel->read_mst_cap(dp_panel))
+		goto skip_edid;
+
 	rc = dp_panel_read_edid(dp_panel, connector);
 	rc = dp_panel_read_edid(dp_panel, connector);
 	if (rc) {
 	if (rc) {
 		DP_ERR("panel edid read failed, set failsafe mode\n");
 		DP_ERR("panel edid read failed, set failsafe mode\n");
 		return rc;
 		return rc;
 	}
 	}
 
 
+skip_edid:
 	dp_panel->widebus_en = panel->parser->has_widebus;
 	dp_panel->widebus_en = panel->parser->has_widebus;
 	dp_panel->dsc_feature_enable = panel->parser->dsc_feature_enable;
 	dp_panel->dsc_feature_enable = panel->parser->dsc_feature_enable;
 	dp_panel->fec_feature_enable = panel->parser->fec_feature_enable;
 	dp_panel->fec_feature_enable = panel->parser->fec_feature_enable;