]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/infiniband/hw/ocrdma/ocrdma_hw.c
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)
commit6dab02648c4c8bb58b35efccf29291d7970aeb68
tree0b37e9117f5a2ca796c2d28d1449cc7b6035160f
parentf252b5dc36e26368c7161f32ef304c30cd2d1f6c
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