diff options
author | Xi Wang <wangxi11@huawei.com> | 2021-03-27 04:21:32 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-04-01 21:12:45 +0200 |
commit | ee82e68850a43a080e64497ec6940d23f8c6df66 (patch) | |
tree | 7cff2362b86a984e268862689f96dda7cb1a28fb /drivers/infiniband/hw/hns/hns_roce_hw_v1.c | |
parent | RDMA/hns: Reorganize hns_roce_create_cq() (diff) | |
download | linux-ee82e68850a43a080e64497ec6940d23f8c6df66.tar.xz linux-ee82e68850a43a080e64497ec6940d23f8c6df66.zip |
RDMA/hns: Refactor reset state checking flow
The 'HNS_ROCE_OPC_QUERY_MB_ST' command will response the mailbox complete
status and hardware busy flag, and the complete status is only valid when
the busy flag is 0, so it's better to query these two fields at a time
rather than separately.
Link: https://lore.kernel.org/r/1616815294-13434-4-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_hw_v1.c')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c index 414e9f33ba49..5f31b340b739 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c @@ -4349,7 +4349,7 @@ static const struct hns_roce_hw hns_roce_hw_v1 = { .hw_init = hns_roce_v1_init, .hw_exit = hns_roce_v1_exit, .post_mbox = hns_roce_v1_post_mbox, - .chk_mbox = hns_roce_v1_chk_mbox, + .poll_mbox_done = hns_roce_v1_chk_mbox, .set_gid = hns_roce_v1_set_gid, .set_mac = hns_roce_v1_set_mac, .set_mtu = hns_roce_v1_set_mtu, |