RDMA/hns: Add reset process for function-clear
authorLang Cheng <chenglang@huawei.com>
Wed, 21 Aug 2019 13:14:33 +0000 (21:14 +0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 28 Aug 2019 15:57:26 +0000 (11:57 -0400)
commite075da5e7c47ee1c20b4e8f9a20c6105be99b10f
tree591799255fd4e84048f6bada5fa7ce24934703c4
parentbfe860351e31e71913d4e6c46aae5724b661a519
RDMA/hns: Add reset process for function-clear

If the hardware is resetting, the driver should not perform
the mailbox operation.Function-clear needs to add relevant judgment.

Signed-off-by: Lang Cheng <chenglang@huawei.com>
Link: https://lore.kernel.org/r/1566393276-42555-7-git-send-email-oulijun@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h