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
dc83ef949f
commit
375c80052a
1 changed files with 7 additions and 1 deletions
|
@ -414,6 +414,7 @@ u32 XDptx_CfgMainLinkMax(XDptx *InstancePtr)
|
||||||
u32 XDptx_EstablishLink(XDptx *InstancePtr)
|
u32 XDptx_EstablishLink(XDptx *InstancePtr)
|
||||||
{
|
{
|
||||||
u32 Status;
|
u32 Status;
|
||||||
|
u32 ReenableMainLink;
|
||||||
|
|
||||||
/* Verify arguments. */
|
/* Verify arguments. */
|
||||||
Xil_AssertNonvoid(InstancePtr != NULL);
|
Xil_AssertNonvoid(InstancePtr != NULL);
|
||||||
|
@ -433,6 +434,9 @@ u32 XDptx_EstablishLink(XDptx *InstancePtr)
|
||||||
|
|
||||||
XDptx_ResetPhy(InstancePtr, XDPTX_PHY_CONFIG_PHY_RESET_MASK);
|
XDptx_ResetPhy(InstancePtr, XDPTX_PHY_CONFIG_PHY_RESET_MASK);
|
||||||
|
|
||||||
|
ReenableMainLink = XDptx_ReadReg(InstancePtr->Config.BaseAddr,
|
||||||
|
XDPTX_ENABLE_MAIN_STREAM);
|
||||||
|
|
||||||
XDptx_DisableMainLink(InstancePtr);
|
XDptx_DisableMainLink(InstancePtr);
|
||||||
|
|
||||||
/* Train main link. */
|
/* Train main link. */
|
||||||
|
@ -441,7 +445,9 @@ u32 XDptx_EstablishLink(XDptx *InstancePtr)
|
||||||
return XST_FAILURE;
|
return XST_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
XDptx_EnableMainLink(InstancePtr);
|
if (ReenableMainLink != 0) {
|
||||||
|
XDptx_EnableMainLink(InstancePtr);
|
||||||
|
}
|
||||||
|
|
||||||
return XST_SUCCESS;
|
return XST_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue