staging/rdma/hfi1, IB/core: Fix LinkDownReason define for consistency
authorEaswar Hariharan <easwar.hariharan@intel.com>
Wed, 3 Feb 2016 22:36:58 +0000 (14:36 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:59 +0000 (20:37 -0500)
LinkDownReason LocalMediaNotInstalled lacked an underscore
and was inconsistent with other defines in the same family.
This patch fixes this.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c
drivers/staging/rdma/hfi1/platform.c
include/rdma/opa_port_info.h

index 8c06e3b0185a3bc9d129375927354d56eaeb4266..f31cc238d6db87266d966205aaf85e86bdc75551 100644 (file)
@@ -5950,12 +5950,12 @@ static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg)
 
                        if ((ppd->offline_disabled_reason >
                          HFI1_ODR_MASK(
-                         OPA_LINKDOWN_REASONLOCAL_MEDIA_NOT_INSTALLED)) ||
+                         OPA_LINKDOWN_REASON_LOCAL_MEDIA_NOT_INSTALLED)) ||
                          (ppd->offline_disabled_reason ==
                          HFI1_ODR_MASK(OPA_LINKDOWN_REASON_NONE)))
                                ppd->offline_disabled_reason =
                                HFI1_ODR_MASK(
-                               OPA_LINKDOWN_REASONLOCAL_MEDIA_NOT_INSTALLED);
+                               OPA_LINKDOWN_REASON_LOCAL_MEDIA_NOT_INSTALLED);
 
                        if (ppd->host_link_state == HLS_DN_POLL) {
                                /*
index c3df1d892754d2023db7ce942eb0ba06ec449bbe..506a82766b33eb3ff3ae4b395276634c3f079d31 100644 (file)
@@ -816,7 +816,7 @@ void tune_serdes(struct hfi1_pportdata *ppd)
                } else
                        ppd->offline_disabled_reason =
                           HFI1_ODR_MASK(
-                               OPA_LINKDOWN_REASONLOCAL_MEDIA_NOT_INSTALLED);
+                               OPA_LINKDOWN_REASON_LOCAL_MEDIA_NOT_INSTALLED);
                break;
        default:
                dd_dev_info(ppd->dd, "%s: Unknown port type\n", __func__);
index a0fa975cd1c1c94f8e0c77991557a7ed87efb83e..2b95c2c336eb85db88c1054f991547c11a11ec4e 100644 (file)
@@ -97,7 +97,7 @@
 #define OPA_LINKDOWN_REASON_WIDTH_POLICY                       41
 /* 42-48 reserved */
 #define OPA_LINKDOWN_REASON_DISCONNECTED                       49
-#define OPA_LINKDOWN_REASONLOCAL_MEDIA_NOT_INSTALLED           50
+#define OPA_LINKDOWN_REASON_LOCAL_MEDIA_NOT_INSTALLED          50
 #define OPA_LINKDOWN_REASON_NOT_INSTALLED                      51
 #define OPA_LINKDOWN_REASON_CHASSIS_CONFIG                     52
 /* 53 reserved */