RDMA/hns: Modify the mapping attribute of doorbell to device
authorYixing Liu <liuyixing1@huawei.com>
Mon, 6 Dec 2021 13:36:52 +0000 (21:36 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 6 Dec 2021 23:50:06 +0000 (19:50 -0400)
commit39d5534b1302189c809e90641ffae8cbdc42a8fc
tree29d9bae6be78eb1aa93e350ebc7bc5173383572f
parent76937fa552008405d7dd43143545794542623108
RDMA/hns: Modify the mapping attribute of doorbell to device

It is more general for ARM device drivers to use the device attribute to
map PCI BAR spaces.

Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver")
Link: https://lore.kernel.org/r/20211206133652.27476-1-liangwenpeng@huawei.com
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_main.c