Unverified Commit 9e80e8b6 authored by Sylvain Chouleur's avatar Sylvain Chouleur Committed by GitHub

xdma: support 64bits coherent addressing

parent 748af10d
...@@ -3902,9 +3902,7 @@ static int set_dma_mask(struct pci_dev *pdev) ...@@ -3902,9 +3902,7 @@ static int set_dma_mask(struct pci_dev *pdev)
dbg_init("pci_set_dma_mask()\n"); dbg_init("pci_set_dma_mask()\n");
/* use 64-bit DMA */ /* use 64-bit DMA */
dbg_init("Using a 64-bit DMA mask.\n"); dbg_init("Using a 64-bit DMA mask.\n");
/* use 32-bit DMA for descriptors */ pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
/* use 64-bit DMA, 32-bit for consistent */
} else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { } else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
dbg_init("Could not set 64-bit DMA mask.\n"); dbg_init("Could not set 64-bit DMA mask.\n");
pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment