From 126ce89ad6331fdae18b722e14a1c2fbd36668ac Mon Sep 17 00:00:00 2001 From: Fuad Hossain Date: Tue, 8 Oct 2019 13:49:17 -0400 Subject: [PATCH] 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 --- msm/dp/dp_panel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/dp/dp_panel.c b/msm/dp/dp_panel.c index a4a2a735..f7747cc5 100644 --- a/msm/dp/dp_panel.c +++ b/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)