IB/ipath: Fix IB compliance problems with link state vs physical state
authorRalph Campbell <ralph.campbell@qlogic.com>
Fri, 14 Dec 2007 09:53:56 +0000 (01:53 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 11 Mar 2008 20:58:22 +0000 (13:58 -0700)
commit140277e9a710202608914b5b731948d2769399bc
treed30fa34b17ec1f42508c5d046926ed7a717126c4
parentbaadac8b10c5ac15ce3d26b68fa266c8889b163f
IB/ipath: Fix IB compliance problems with link state vs physical state

Subnet manager SetPortinfo messages distingush between changing the link
state (DOWN, ARM, ACTIVE) and the link physical state (POLL, SLEEP,
DISABLED).  These are somewhat independent commands and affect when link
width and speed changes take effect.  Without this patch, a link DOWN
physical state NOP command was causing the link width and speed settings
to take effect which should only happen when the link physical state is
goes down (either by a SMP or some link physical error like link errors
exceeding the threshold).

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_common.h
drivers/infiniband/hw/ipath/ipath_driver.c
drivers/infiniband/hw/ipath/ipath_kernel.h
drivers/infiniband/hw/ipath/ipath_mad.c
drivers/infiniband/hw/ipath/ipath_registers.h