Pārlūkot izejas kodu

disp: msm: dp: Check if DP version supports FEC and DSC

FEC and DSC are only supported in DP 1.4 onwards.
Read FEC and DSC capabilities only if this
requirement is met. This will ensure backwards
compatibility with older DP devices.

CRs-Fixed: 2541795
Change-Id: I65a6cb903f332e896946dc3b9da4d95a14fac939
Signed-off-by: Fuad Hossain <[email protected]>
Fuad Hossain 5 gadi atpakaļ
vecāks
revīzija
126ce89ad6
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      msm/dp/dp_panel.c

+ 2 - 1
msm/dp/dp_panel.c

@@ -2152,7 +2152,8 @@ static int dp_panel_read_sink_caps(struct dp_panel *dp_panel,
 	dp_panel->fec_en = false;
 	dp_panel->dsc_en = false;
 
-	if (dp_panel->fec_feature_enable) {
+	if (dp_panel->dpcd[DP_DPCD_REV] >= DP_DPCD_REV_14 &&
+			dp_panel->fec_feature_enable) {
 		dp_panel_read_sink_fec_caps(dp_panel);
 
 		if (dp_panel->dsc_feature_enable && dp_panel->fec_en)