dptx: Modified the asserts for the establish link function.

Since the check link status function is no longer being called within the
establish link function, some additional assertions need to be done.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
Andrei-Liviu Simion 2015-01-07 12:55:14 -08:00 committed by Nava kishore Manne
parent 29af856045
commit dc83ef949f

View file

@ -424,9 +424,12 @@ u32 XDptx_EstablishLink(XDptx *InstancePtr)
XDPTX_LINK_BW_SET_270GBPS) ||
(InstancePtr->LinkConfig.LinkRate ==
XDPTX_LINK_BW_SET_540GBPS));
/* The lane count will be checked in XDptx_CheckLinkStatus. */
Xil_AssertNonvoid(InstancePtr->RxConfig.LaneStatusAdjReqs != NULL);
Xil_AssertNonvoid(InstancePtr->RxConfig.DpcdRxCapsField != NULL);
Xil_AssertNonvoid((InstancePtr->LinkConfig.LaneCount ==
XDPTX_LANE_COUNT_SET_1) ||
(InstancePtr->LinkConfig.LaneCount ==
XDPTX_LANE_COUNT_SET_2) ||
(InstancePtr->LinkConfig.LaneCount ==
XDPTX_LANE_COUNT_SET_4));
XDptx_ResetPhy(InstancePtr, XDPTX_PHY_CONFIG_PHY_RESET_MASK);