IB/hfi1: Unify access to GUID entries
This patch consolidates the node GUIDs and the port GUID handling and unifies access to these items. The knowledge of hfi1 GUIDs' design and their location are kept in accessors to centralize access. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Brian Welty <brian.welty@intel.com> Signed-off-by: Jakub Pawlak <jakub.pawlak@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
@@ -9567,11 +9567,11 @@ int bringup_serdes(struct hfi1_pportdata *ppd)
|
||||
if (HFI1_CAP_IS_KSET(EXTENDED_PSN))
|
||||
add_rcvctrl(dd, RCV_CTRL_RCV_EXTENDED_PSN_ENABLE_SMASK);
|
||||
|
||||
guid = ppd->guid;
|
||||
guid = ppd->guids[HFI1_PORT_GUID_INDEX];
|
||||
if (!guid) {
|
||||
if (dd->base_guid)
|
||||
guid = dd->base_guid + ppd->port - 1;
|
||||
ppd->guid = guid;
|
||||
ppd->guids[HFI1_PORT_GUID_INDEX] = guid;
|
||||
}
|
||||
|
||||
/* Set linkinit_reason on power up per OPA spec */
|
||||
|
Reference in New Issue
Block a user