aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ntb/hw/amd
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2020-05-05 23:21:48 -0500
committerJon Mason <jdmason@kudzu.us>2020-06-05 20:02:08 -0400
commitf80fe8944e085a1065f4829a14af8394cad1c30f (patch)
treee1a4ba9e30e19037d8d09569d3637e762346da7d /drivers/ntb/hw/amd
parentNTB: correct ntb_peer_spad_addr and ntb_peer_spad_read comment typos (diff)
downloadlinux-dev-f80fe8944e085a1065f4829a14af8394cad1c30f.tar.xz
linux-dev-f80fe8944e085a1065f4829a14af8394cad1c30f.zip
ntb: hw: remove the code that sets the DMA mask
This patch removes the code that sets the DMA mask as it no longer makes sense to do this. Fixes: 7f46c8b3a552 ("NTB: ntb_tool: Add full multi-port NTB API support") Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Tested-by: Alexander Fomichev <fomichev.ru@gmail.com> Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/hw/amd')
-rw-r--r--drivers/ntb/hw/amd/ntb_hw_amd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c
index 9e310e1ad4d0..88e1db65be02 100644
--- a/drivers/ntb/hw/amd/ntb_hw_amd.c
+++ b/drivers/ntb/hw/amd/ntb_hw_amd.c
@@ -1191,10 +1191,6 @@ static int amd_ntb_init_pci(struct amd_ntb_dev *ndev,
goto err_dma_mask;
dev_warn(&pdev->dev, "Cannot DMA consistent highmem\n");
}
- rc = dma_coerce_mask_and_coherent(&ndev->ntb.dev,
- dma_get_mask(&pdev->dev));
- if (rc)
- goto err_dma_mask;
ndev->self_mmio = pci_iomap(pdev, 0, 0);
if (!ndev->self_mmio) {