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 Nava kishore Manne
parent bba7e0e8d3
commit 431de2ef88

View file

@ -428,12 +428,6 @@ u32 XDptx_EstablishLink(XDptx *InstancePtr)
Xil_AssertNonvoid(InstancePtr->RxConfig.LaneStatusAdjReqs != NULL); Xil_AssertNonvoid(InstancePtr->RxConfig.LaneStatusAdjReqs != NULL);
Xil_AssertNonvoid(InstancePtr->RxConfig.DpcdRxCapsField != 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_ResetPhy(InstancePtr, XDPTX_PHY_CONFIG_PHY_RESET_MASK);
XDptx_DisableMainLink(InstancePtr); XDptx_DisableMainLink(InstancePtr);