i40iw: Clear CQP Head/Tail during initialization
authorChristopher Bednarz <christopher.n.bednarz@intel.com>
Mon, 16 Oct 2017 20:46:03 +0000 (15:46 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 17:28:46 +0000 (13:28 -0400)
commit56b2f52310f9fdfc1ea7b99702f827f84ad16801
treead0caecc68a56fb550b2b6043bc4c367da1313eb
parent1196923838cf1d2b7abcb9a1007eede09ad93acd
i40iw: Clear CQP Head/Tail during initialization

Clear Control Queue Pair (CQP) Head/Tail on CQP
initialization as during an adapter reset, these
values are not reinitialized. Tail is cleared by
writing 0 to CQP's tail register. Head is cleared
by writing 0 to CQP's doorbell register.

Fixes: 86dbcd0f12e9 ("i40iw: add file to handle cqp calls")
Signed-off-by: Christopher Bednarz <christopher.n.bednarz@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_ctrl.c