]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/ocrdma: Do proper cleanup even if FW is in error state
authorMitesh Ahuja <mitesh.ahuja@emulex.Com>
Tue, 10 Jun 2014 14:02:21 +0000 (19:32 +0530)
committerRoland Dreier <roland@purestorage.com>
Fri, 1 Aug 2014 22:07:36 +0000 (15:07 -0700)
commit64e9518bef84293ecdb64c9dca84eabfec90b1a0
tree0b37e9117f5a2ca796c2d28d1449cc7b6035160f
parent8263a364492d87f857e082d760799764d6c53596
RDMA/ocrdma: Do proper cleanup even if FW is in error state

If any mailbox command reports timeout, save the state in the driver,
to prevent issuing any more commands to the HW.  Do proper cleanup
even if FW is in error state.

Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.Com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ocrdma/ocrdma.h
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c