dptx: Preserve main link enable status while link training.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
parent
6647392766
commit
4f25fdb51f
1 changed files with 7 additions and 1 deletions
|
@ -414,6 +414,7 @@ u32 XDptx_CfgMainLinkMax(XDptx *InstancePtr)
|
|||
u32 XDptx_EstablishLink(XDptx *InstancePtr)
|
||||
{
|
||||
u32 Status;
|
||||
u32 ReenableMainLink;
|
||||
|
||||
/* Verify arguments. */
|
||||
Xil_AssertNonvoid(InstancePtr != NULL);
|
||||
|
@ -433,6 +434,9 @@ u32 XDptx_EstablishLink(XDptx *InstancePtr)
|
|||
|
||||
XDptx_ResetPhy(InstancePtr, XDPTX_PHY_CONFIG_PHY_RESET_MASK);
|
||||
|
||||
ReenableMainLink = XDptx_ReadReg(InstancePtr->Config.BaseAddr,
|
||||
XDPTX_ENABLE_MAIN_STREAM);
|
||||
|
||||
XDptx_DisableMainLink(InstancePtr);
|
||||
|
||||
/* Train main link. */
|
||||
|
@ -441,7 +445,9 @@ u32 XDptx_EstablishLink(XDptx *InstancePtr)
|
|||
return XST_FAILURE;
|
||||
}
|
||||
|
||||
XDptx_EnableMainLink(InstancePtr);
|
||||
if (ReenableMainLink != 0) {
|
||||
XDptx_EnableMainLink(InstancePtr);
|
||||
}
|
||||
|
||||
return XST_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue