Unverified Commit 02df466d authored by Karen Xie's avatar Karen Xie Committed by GitHub

Merge pull request #129 from schouleu/xdma-64bits-coherent

xdma: support 64bits coherent addressing
parents 6a3b003f 9e80e8b6
...@@ -4197,9 +4197,7 @@ static int set_dma_mask(struct pci_dev *pdev) ...@@ -4197,9 +4197,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