From 0757da209c21a45b0913ba3fd1bb539cd9751901 Mon Sep 17 00:00:00 2001 From: Andrei-Liviu Simion Date: Wed, 7 Jan 2015 12:32:03 -0800 Subject: [PATCH] dptx: Force retrain when the establish link function is called. Previously, the establish link function was checking the status of all lanes and only retraining if the link isn't trained. This results in no retraining if the application reduces the lane count. The link should always be retrained on a change in lane count. Signed-off-by: Andrei-Liviu Simion --- XilinxProcessorIPLib/drivers/dptx/src/xdptx.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/dptx/src/xdptx.c b/XilinxProcessorIPLib/drivers/dptx/src/xdptx.c index 1cbe7fb1..7c1c3b91 100644 --- a/XilinxProcessorIPLib/drivers/dptx/src/xdptx.c +++ b/XilinxProcessorIPLib/drivers/dptx/src/xdptx.c @@ -428,12 +428,6 @@ u32 XDptx_EstablishLink(XDptx *InstancePtr) Xil_AssertNonvoid(InstancePtr->RxConfig.LaneStatusAdjReqs != NULL); Xil_AssertNonvoid(InstancePtr->RxConfig.DpcdRxCapsField != NULL); - Status = XDptx_CheckLinkStatus(InstancePtr, - InstancePtr->LinkConfig.LaneCount); - if (Status != XST_FAILURE) { - return Status; - } - XDptx_ResetPhy(InstancePtr, XDPTX_PHY_CONFIG_PHY_RESET_MASK); XDptx_DisableMainLink(InstancePtr);