[RFC 05/13] drm/dp: Fast link training is DP 1.1+

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


From: Thierry Reding <treding at nvidia.com>

The capability to train the link without the AUX CH handshake was
introduced in DisplayPort 1.1, so it must be guarded 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 dcfd6898aebe..1fe181525604 100644
--- a/drivers/gpu/drm/drm_dp_helper.c
+++ b/drivers/gpu/drm/drm_dp_helper.c
@@ -316,8 +316,9 @@ int drm_dp_link_probe(struct drm_dp_aux *aux, struct drm_dp_link *link)
 		if (values[2] & DP_TPS3_SUPPORTED)
 			link->capabilities |= DP_LINK_CAP_TPS3;
 
-	if (values[3] & DP_NO_AUX_HANDSHAKE_LINK_TRAINING)
-		link->capabilities |= DP_LINK_CAP_FAST_TRAINING;
+	if (link->revision >= 0x11)
+		if (values[3] & DP_NO_AUX_HANDSHAKE_LINK_TRAINING)
+			link->capabilities |= DP_LINK_CAP_FAST_TRAINING;
 
 	if (values[6] & DP_SET_ANSI_8B10B)
 		link->capabilities |= DP_LINK_CAP_ANSI_8B10B;
-- 
2.4.5



More information about the dri-devel mailing list