From 331244ad31a508e5c12f9f38f55bd085fa3d906f Mon Sep 17 00:00:00 2001 From: Andrei-Liviu Simion Date: Tue, 13 Jan 2015 16:06:59 -0800 Subject: [PATCH] dp: dptx: Training should fail if clock recovery fails on maximum voltage swing. Required for DisplayPort compliance. Signed-off-by: Andrei-Liviu Simion --- XilinxProcessorIPLib/drivers/dp/src/xdptx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/XilinxProcessorIPLib/drivers/dp/src/xdptx.c b/XilinxProcessorIPLib/drivers/dp/src/xdptx.c index 8421eace..f7b352b3 100644 --- a/XilinxProcessorIPLib/drivers/dp/src/xdptx.c +++ b/XilinxProcessorIPLib/drivers/dp/src/xdptx.c @@ -1565,6 +1565,9 @@ static XDptx_TrainingState XDptx_TrainingStateClockRecovery(XDptx *InstancePtr) if (SameVsLevelCount >= 5) { break; } + if (LinkConfig->VsLevel == XDPTX_MAXIMUM_VS_LEVEL) { + break; + } /* Adjust the drive settings as requested by the RX device. */ Status = XDptx_AdjVswingPreemp(InstancePtr);