From: Mustafa Ismail Date: Fri, 23 Jun 2017 21:03:56 +0000 (-0500) Subject: i40iw: Do not poll CCQ after it is destroyed X-Git-Tag: v4.14-rc1~242^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=415920aa174666c0ac8c47eee974acc9f49efec4;p=platform%2Fkernel%2Flinux-rpi3.git i40iw: Do not poll CCQ after it is destroyed Control Queue Pair (CQP) OPs, in this case - Update SDs, cannot poll the Control Completion Queue (CCQ) after CCQ is destroyed. Instead, poll via registers. Signed-off-by: Mustafa Ismail Signed-off-by: Henry Orosco Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c index a027e20..9ec1ae9 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c +++ b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c @@ -1970,6 +1970,8 @@ static enum i40iw_status_code i40iw_sc_ccq_destroy(struct i40iw_sc_cq *ccq, ret_code = i40iw_cqp_poll_registers(cqp, tail, 1000); } + cqp->process_cqp_sds = i40iw_update_sds_noccq; + return ret_code; }