diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2006-09-28 12:00:10 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-28 14:16:47 -0400 |
commit | 5659416207a9bcf35a646c7b798b290953e4891c (patch) | |
tree | 3d8ea17b0e40266378189307192fe7b140d43130 /drivers/infiniband | |
parent | 0624b072f230af4f24c112019b04f898ef7b4e2c (diff) |
IB/ipath: Fix mismatch in shifts and masks for printing debug info
Fixed mismatch in linkstate/trainingstate shifts and masks in the
IPATH_IBSTATE_MASK macro. It kept some linktrainingstates
from being printed correctly in debug; no functionality issue unless
I misread the code.
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_registers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_registers.h b/drivers/infiniband/hw/ipath/ipath_registers.h index 37612a83deeb..25c901e4a352 100644 --- a/drivers/infiniband/hw/ipath/ipath_registers.h +++ b/drivers/infiniband/hw/ipath/ipath_registers.h | |||
@@ -223,9 +223,9 @@ | |||
223 | 223 | ||
224 | /* combination link status states that we use with some frequency */ | 224 | /* combination link status states that we use with some frequency */ |
225 | #define IPATH_IBSTATE_MASK ((INFINIPATH_IBCS_LINKTRAININGSTATE_MASK \ | 225 | #define IPATH_IBSTATE_MASK ((INFINIPATH_IBCS_LINKTRAININGSTATE_MASK \ |
226 | << INFINIPATH_IBCS_LINKSTATE_SHIFT) | \ | 226 | << INFINIPATH_IBCS_LINKTRAININGSTATE_SHIFT) | \ |
227 | (INFINIPATH_IBCS_LINKSTATE_MASK \ | 227 | (INFINIPATH_IBCS_LINKSTATE_MASK \ |
228 | <<INFINIPATH_IBCS_LINKTRAININGSTATE_SHIFT)) | 228 | <<INFINIPATH_IBCS_LINKSTATE_SHIFT)) |
229 | #define IPATH_IBSTATE_INIT ((INFINIPATH_IBCS_L_STATE_INIT \ | 229 | #define IPATH_IBSTATE_INIT ((INFINIPATH_IBCS_L_STATE_INIT \ |
230 | << INFINIPATH_IBCS_LINKSTATE_SHIFT) | \ | 230 | << INFINIPATH_IBCS_LINKSTATE_SHIFT) | \ |
231 | (INFINIPATH_IBCS_LT_STATE_LINKUP \ | 231 | (INFINIPATH_IBCS_LT_STATE_LINKUP \ |