From 2147c179cf76c92fa9a6e0110dafbe264b200861 Mon Sep 17 00:00:00 2001 From: Andrei-Liviu Simion Date: Sat, 28 Mar 2015 20:01:11 -0700 Subject: [PATCH] dp: mst: Removed unneeded data from the link address reply structure. - ReplyType: The driver already checks for NACK elsewhere. - RequestId: The link address reply will always carry the LINK_ADDRESS tag. Signed-off-by: Andrei-Liviu Simion --- XilinxProcessorIPLib/drivers/dp/src/xdp.h | 11 ----------- XilinxProcessorIPLib/drivers/dp/src/xdp_mst.c | 4 +--- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/dp/src/xdp.h b/XilinxProcessorIPLib/drivers/dp/src/xdp.h index de7535cc..475607eb 100644 --- a/XilinxProcessorIPLib/drivers/dp/src/xdp.h +++ b/XilinxProcessorIPLib/drivers/dp/src/xdp.h @@ -551,17 +551,6 @@ typedef struct { * when the driver is operating in multi-stream transport (MST) mode. */ typedef struct { - u8 ReplyType; /**< The reply type of the sideband - message. A value of 1 indicates - that the request wasn't - successful and the return data - will give the reason for a - negative-acknowledge (NACK). */ - u8 RequestId; /**< The request identifier of the - reply. This should correspond to - the request identifier for the - LINK_ADDRESS sideband message - request. */ u32 Guid[4]; /**< The global unique identifier (GUID) of the branch device. */ u8 NumPorts; /**< The number of ports associated with diff --git a/XilinxProcessorIPLib/drivers/dp/src/xdp_mst.c b/XilinxProcessorIPLib/drivers/dp/src/xdp_mst.c index 14cd5562..911f0733 100644 --- a/XilinxProcessorIPLib/drivers/dp/src/xdp_mst.c +++ b/XilinxProcessorIPLib/drivers/dp/src/xdp_mst.c @@ -2447,14 +2447,12 @@ static void XDp_TxAddSinkToList(XDp *InstancePtr, static void XDp_TxGetDeviceInfoFromSbMsgLinkAddress(XDp_SidebandReply *SbReply, XDp_TxSbMsgLinkAddressReplyDeviceInfo *FormatReply) { - u8 ReplyIndex = 0; + u8 ReplyIndex = 1; u8 Index, Index2; XDp_TxSbMsgLinkAddressReplyPortDetail *PortDetails; /* Determine the device information from the sideband message reply * structure. */ - FormatReply->ReplyType = (SbReply->Data[ReplyIndex] >> 7); - FormatReply->RequestId = (SbReply->Data[ReplyIndex++] & 0x7F); memset(FormatReply->Guid, 0, 16); for (Index = 0; Index < 16; Index++) {