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 <andrei.simion@xilinx.com>
This commit is contained in:
Andrei-Liviu Simion 2015-01-07 12:32:03 -08:00 committed by Suneel Garapati
parent 3f97b78bf9
commit 0757da209c

View file

@ -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);