From: Bryan O'Sullivan Date: Thu, 28 Sep 2006 16:00:10 +0000 (-0700) Subject: IB/ipath: Fix mismatch in shifts and masks for printing debug info X-Git-Tag: v2.6.19-rc1~652^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5659416207a9bcf35a646c7b798b290953e4891c;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/ipath/ipath_registers.h b/drivers/infiniband/hw/ipath/ipath_registers.h index 37612a83dee..25c901e4a35 100644 --- a/drivers/infiniband/hw/ipath/ipath_registers.h +++ b/drivers/infiniband/hw/ipath/ipath_registers.h @@ -223,9 +223,9 @@ /* combination link status states that we use with some frequency */ #define IPATH_IBSTATE_MASK ((INFINIPATH_IBCS_LINKTRAININGSTATE_MASK \ - << INFINIPATH_IBCS_LINKSTATE_SHIFT) | \ + << INFINIPATH_IBCS_LINKTRAININGSTATE_SHIFT) | \ (INFINIPATH_IBCS_LINKSTATE_MASK \ - <