RDMA/mlx5: Use PCI device for dma mappings
authorParav Pandit <parav@nvidia.com>
Wed, 25 Nov 2020 06:46:28 +0000 (08:46 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Nov 2020 19:49:05 +0000 (15:49 -0400)
commit7ec3df174f2b225267849d5e645d641d5f98dcd8
treee8c0f020948190cc04c2a95c3131054fd973f05b
parentd4b2d19dc53ecb5ef4fe79cc2d4b7ae3413b2604
RDMA/mlx5: Use PCI device for dma mappings

DMA operation of the IB device is done using ib_device->dma_device.

Instead of accessing parent of the IB device, use the PCI dma device which
is setup to ib_device->dma_device during IB device registration.

Link: https://lore.kernel.org/r/20201125064628.8431-1-leon@kernel.org
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mr.c