Browse Source

RDMA/ocrdma: Fix EQ destroy failure during driver unload

Changing the destroy sequence of mailbox queue and event queues.
FW expects mailbox queue to be destroyed before desroying the EQs.

Signed-off-by: Selvin Xavier <selvin.xavier@avagotech.com>
Signed-off-by: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Selvin Xavier 10 years ago
parent
commit
314fdf4473
1 changed files with 3 additions and 3 deletions
  1. 3 3
      drivers/infiniband/hw/ocrdma/ocrdma_hw.c

+ 3 - 3
drivers/infiniband/hw/ocrdma/ocrdma_hw.c

@@ -3147,9 +3147,9 @@ void ocrdma_cleanup_hw(struct ocrdma_dev *dev)
 	ocrdma_free_pd_pool(dev);
 	ocrdma_free_pd_pool(dev);
 	ocrdma_mbx_delete_ah_tbl(dev);
 	ocrdma_mbx_delete_ah_tbl(dev);
 
 
-	/* cleanup the eqs */
-	ocrdma_destroy_eqs(dev);
-
 	/* cleanup the control path */
 	/* cleanup the control path */
 	ocrdma_destroy_mq(dev);
 	ocrdma_destroy_mq(dev);
+
+	/* cleanup the eqs */
+	ocrdma_destroy_eqs(dev);
 }
 }