FPGA Manager changes for 5.18-rc1
Christophe's patch is part of a larger effort of removing the use of the deprecated pci-dma-compat API. All patches have been reviewed on the mailing list, and have been in the last few linux-next releases (as part of our for-next branch) without issues. Signed-off-by: Moritz Fischer <mdf@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSdhnt2PwibB65UG0C3mJX/Vsn7uQUCYhv1IwAKCRC3mJX/Vsn7 udBaAP98QrqPB5qq9LCxqRJEzQQdsMz3QUywqv1bswtFZ++XZwEAxLLPP0kg17/A SwbRfgejAYPf6oYcy0z1sREe7JTdfwQ= =uJAO -----END PGP SIGNATURE----- Merge tag 'fpga-for-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga into char-misc-next Moritz writes: FPGA Manager changes for 5.18-rc1 Christophe's patch is part of a larger effort of removing the use of the deprecated pci-dma-compat API. All patches have been reviewed on the mailing list, and have been in the last few linux-next releases (as part of our for-next branch) without issues. Signed-off-by: Moritz Fischer <mdf@kernel.org> * tag 'fpga-for-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga: fpga: dfl: pci: Remove usage of the deprecated "pci-dma-compat.h" API
This commit is contained in:
commit
0245107a83
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
|
||||
#include <linux/pci.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
|
@ -354,16 +355,10 @@ int cci_pci_probe(struct pci_dev *pcidev, const struct pci_device_id *pcidevid)
|
|||
|
||||
pci_set_master(pcidev);
|
||||
|
||||
if (!pci_set_dma_mask(pcidev, DMA_BIT_MASK(64))) {
|
||||
ret = pci_set_consistent_dma_mask(pcidev, DMA_BIT_MASK(64));
|
||||
if (ret)
|
||||
goto disable_error_report_exit;
|
||||
} else if (!pci_set_dma_mask(pcidev, DMA_BIT_MASK(32))) {
|
||||
ret = pci_set_consistent_dma_mask(pcidev, DMA_BIT_MASK(32));
|
||||
if (ret)
|
||||
goto disable_error_report_exit;
|
||||
} else {
|
||||
ret = -EIO;
|
||||
ret = dma_set_mask_and_coherent(&pcidev->dev, DMA_BIT_MASK(64));
|
||||
if (ret)
|
||||
ret = dma_set_mask_and_coherent(&pcidev->dev, DMA_BIT_MASK(32));
|
||||
if (ret) {
|
||||
dev_err(&pcidev->dev, "No suitable DMA support available.\n");
|
||||
goto disable_error_report_exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue