dp: tx: Re-enable link after the training pattern disabled.
Even if link training succeeds, sometimes, the link will fall if the link is enabled prior to the training pattern being turned off. Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
parent
332ba9d225
commit
f016a6d3cd
1 changed files with 5 additions and 5 deletions
|
@ -400,11 +400,6 @@ u32 XDp_TxEstablishLink(XDp *InstancePtr)
|
|||
/* Train main link. */
|
||||
Status = XDp_TxRunTraining(InstancePtr);
|
||||
|
||||
/* Reenable main link after training if required. */
|
||||
if (ReenableMainLink != 0) {
|
||||
XDp_TxEnableMainLink(InstancePtr);
|
||||
}
|
||||
|
||||
/* Turn off the training pattern and enable scrambler. */
|
||||
Status2 = XDp_TxSetTrainingPattern(InstancePtr,
|
||||
XDP_TX_TRAINING_PATTERN_SET_OFF);
|
||||
|
@ -412,6 +407,11 @@ u32 XDp_TxEstablishLink(XDp *InstancePtr)
|
|||
return XST_FAILURE;
|
||||
}
|
||||
|
||||
/* Reenable main link after training if required. */
|
||||
if (ReenableMainLink) {
|
||||
XDp_TxEnableMainLink(InstancePtr);
|
||||
}
|
||||
|
||||
return XST_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue