[RFC 04/13] drm/dp: Enhanced framing capability is DP 1.1+

Thierry Reding thierry.reding at gmail.com
Wed Aug 12 08:06:32 PDT 2015


From: Thierry Reding <treding at nvidia.com>

The enhanced framing capability was added in DisplayPort 1.1, so any
code dealing with it needs to be protected accordingly.

Signed-off-by: Thierry Reding <treding at nvidia.com>
---
 drivers/gpu/drm/drm_dp_helper.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c
index 45701c650a5d..dcfd6898aebe 100644
--- a/drivers/gpu/drm/drm_dp_helper.c
+++ b/drivers/gpu/drm/drm_dp_helper.c
@@ -308,8 +308,9 @@ int drm_dp_link_probe(struct drm_dp_aux *aux, struct drm_dp_link *link)
 	link->rate = drm_dp_bw_code_to_link_rate(values[1]);
 	link->num_lanes = values[2] & DP_MAX_LANE_COUNT_MASK;
 
-	if (values[2] & DP_ENHANCED_FRAME_CAP)
-		link->capabilities |= DP_LINK_CAP_ENHANCED_FRAMING;
+	if (link->revision >= 0x11)
+		if (values[2] & DP_ENHANCED_FRAME_CAP)
+			link->capabilities |= DP_LINK_CAP_ENHANCED_FRAMING;
 
 	if (link->revision >= 0x12)
 		if (values[2] & DP_TPS3_SUPPORTED)
-- 
2.4.5



More information about the dri-devel mailing list