mbox series

[for-next,0/2] RDMA/hns: Use hr_reg_xxx() instead of remaining roce_set_xxx()/roce_get_xxx()

Message ID 20220512080012.38728-1-liangwenpeng@huawei.com (mailing list archive)
Headers show
Series RDMA/hns: Use hr_reg_xxx() instead of remaining roce_set_xxx()/roce_get_xxx() | expand

Message

Wenpeng Liang May 12, 2022, 8 a.m. UTC
The current hns driver still partially uses roce_set_xxx()/roce_get_xxx()
to write and read data fields. To make the code clearer, replace all
roce_set_xxx()/roce_get_xxx() with hr_reg_xxx().

Wenpeng Liang (2):
  RDMA/hns: Use hr_reg_xxx() instead of remaining roce_set_xxx()
  RDMA/hns: Use hr_reg_read() instead of remaining roce_get_xxx()

 drivers/infiniband/hw/hns/hns_roce_device.h   |  14 +-
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c    | 398 ++++++------------
 drivers/infiniband/hw/hns/hns_roce_hw_v2.h    | 324 +++++---------
 drivers/infiniband/hw/hns/hns_roce_restrack.c |  49 +--
 4 files changed, 261 insertions(+), 524 deletions(-)

--
2.33.0

Comments

Jason Gunthorpe May 12, 2022, 5:47 p.m. UTC | #1
On Thu, May 12, 2022 at 04:00:10PM +0800, Wenpeng Liang wrote:
> The current hns driver still partially uses roce_set_xxx()/roce_get_xxx()
> to write and read data fields. To make the code clearer, replace all
> roce_set_xxx()/roce_get_xxx() with hr_reg_xxx().
> 
> Wenpeng Liang (2):
>   RDMA/hns: Use hr_reg_xxx() instead of remaining roce_set_xxx()
>   RDMA/hns: Use hr_reg_read() instead of remaining roce_get_xxx()

Applied to for-next, thanks

Jason