summaryrefslogtreecommitdiff
path: root/drivers/ntb/hw/idt
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2020-05-06 07:21:48 +0300
committerJon Mason <jdmason@kudzu.us>2020-06-06 03:02:08 +0300
commitf80fe8944e085a1065f4829a14af8394cad1c30f (patch)
treee1a4ba9e30e19037d8d09569d3637e762346da7d /drivers/ntb/hw/idt
parent46f21af862656c477387f2256adc1005503db67d (diff)
downloadlinux-f80fe8944e085a1065f4829a14af8394cad1c30f.tar.xz
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/idt')
-rw-r--r--drivers/ntb/hw/idt/ntb_hw_idt.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/ntb/hw/idt/ntb_hw_idt.c b/drivers/ntb/hw/idt/ntb_hw_idt.c
index edae52384b8a..d54261f50851 100644
--- a/drivers/ntb/hw/idt/ntb_hw_idt.c
+++ b/drivers/ntb/hw/idt/ntb_hw_idt.c
@@ -2660,12 +2660,6 @@ static int idt_init_pci(struct idt_ntb_dev *ndev)
dev_warn(&pdev->dev,
"Cannot set consistent DMA highmem bit mask\n");
}
- ret = dma_coerce_mask_and_coherent(&ndev->ntb.dev,
- dma_get_mask(&pdev->dev));
- if (ret != 0) {
- dev_err(&pdev->dev, "Failed to set NTB device DMA bit mask\n");
- return ret;
- }
/*
* Enable the device advanced error reporting. It's not critical to