]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Fix RESET to ERROR transition
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>
Mon, 14 May 2007 04:26:51 +0000 (07:26 +0300)
committerRoland Dreier <rolandd@cisco.com>
Sat, 19 May 2007 15:51:57 +0000 (08:51 -0700)
commit23d0d445be296ceceffabedb8b5f18b3b22e9f29
tree26074ee4bebfc9342e1d63972366b5b2774cd0cb
parent6f35be79a516d2b3ed1109792aa87441383d6594
IB/mthca: Fix RESET to ERROR transition

According to the IB spec, a QP can be moved from RESET to the ERROR
state, but mthca firmware does not support this and returns an error if
we try.  Work around this FW limitation by moving the QP from RESET to
INIT with dummy parameters and then transitioning from INIT to ERROR.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c