driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9QO9C
----------------------------------------------------------------------
Currently, the POE channel was allocated after IB device registration.
Therefore, other modules will fail to register POE during this period that IB device was registered and POE channels was not allocated.
Fixes: 85b26a97adfe ("RDMA/hns: Support STARS mode QP") Signed-off-by: Chengchang Tang tangchengchang@huawei.com --- drivers/infiniband/hw/hns/hns_roce_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index 4a76f44a5c98..f639f52e6386 100644 --- a/drivers/infiniband/hw/hns/hns_roce_main.c +++ b/drivers/infiniband/hw/hns/hns_roce_main.c @@ -1528,11 +1528,11 @@ int hns_roce_init(struct hns_roce_dev *hr_dev) } }
+ hns_roce_register_poe_ch(hr_dev); ret = hns_roce_register_device(hr_dev); if (ret) goto error_failed_register_device;
- hns_roce_register_poe_ch(hr_dev); hns_roce_register_debugfs(hr_dev);
return 0;