RDMA/erdma: Minor refactor of device init flow
authorCheng Xu <chengyou@linux.alibaba.com>
Wed, 22 Mar 2023 09:33:19 +0000 (17:33 +0800)
committerLeon Romanovsky <leon@kernel.org>
Wed, 22 Mar 2023 11:10:46 +0000 (13:10 +0200)
commit901d9d62416baec3979fd9d768249b8a9e8e56ee
treeab03605b61ab6a5ed30ec93d59fbd38dda76479b
parent72769dba6dc0b8ac5793f94a83add4ce0108c44c
RDMA/erdma: Minor refactor of device init flow

After necessary configuration, driver should wait hardware finishing
initialization. The wait sets at CMDQ related function though it has
nothing to do with CMDQ. Refactor this part to make code cleaner.

Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230322093319.84045-4-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma_cmdq.c
drivers/infiniband/hw/erdma/erdma_main.c