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)
commitb18aad7150c85cc86a66be8a1c744b63b41b36e0
tree26074ee4bebfc9342e1d63972366b5b2774cd0cb
parent1526130351b31c792ced90c6c5ee08df955696c1
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