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:
parent
bba7e0e8d3
commit
431de2ef88
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue