Merge branch 'upstream'
This commit is contained in:
commit
2baeaaa4da
@ -3243,12 +3243,22 @@ static int __devinit skge_probe(struct pci_dev *pdev,
|
|||||||
|
|
||||||
pci_set_master(pdev);
|
pci_set_master(pdev);
|
||||||
|
|
||||||
if (!(err = pci_set_dma_mask(pdev, DMA_64BIT_MASK)))
|
if (sizeof(dma_addr_t) > sizeof(u32) &&
|
||||||
|
!(err = pci_set_dma_mask(pdev, DMA_64BIT_MASK))) {
|
||||||
using_dac = 1;
|
using_dac = 1;
|
||||||
else if (!(err = pci_set_dma_mask(pdev, DMA_32BIT_MASK))) {
|
err = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK);
|
||||||
printk(KERN_ERR PFX "%s no usable DMA configuration\n",
|
if (err < 0) {
|
||||||
pci_name(pdev));
|
printk(KERN_ERR PFX "%s unable to obtain 64 bit DMA "
|
||||||
goto err_out_free_regions;
|
"for consistent allocations\n", pci_name(pdev));
|
||||||
|
goto err_out_free_regions;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
|
||||||
|
if (err) {
|
||||||
|
printk(KERN_ERR PFX "%s no usable DMA configuration\n",
|
||||||
|
pci_name(pdev));
|
||||||
|
goto err_out_free_regions;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __BIG_ENDIAN
|
#ifdef __BIG_ENDIAN
|
||||||
|
Loading…
Reference in New Issue
Block a user