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 Suneel Garapati
parent 155ed0f09a
commit 6647392766

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);