Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22347
b: refs/heads/master
c: 93aea71
h: refs/heads/master
i:
  22345: 570e52b
  22343: ff4ad57
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Mar 21, 2006
1 parent 34f4f33 commit 1dc0e8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c3da14474063e71686039d961d14785a9c2971ae
refs/heads/master: 93aea718c69d44ee492f233929686b15b5b3702d
24 changes: 10 additions & 14 deletions trunk/drivers/net/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -3251,22 +3251,18 @@ static int __devinit skge_probe(struct pci_dev *pdev,

pci_set_master(pdev);

if (sizeof(dma_addr_t) > sizeof(u32) &&
!(err = pci_set_dma_mask(pdev, DMA_64BIT_MASK))) {
if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK)) {
using_dac = 1;
err = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK);
if (err < 0) {
printk(KERN_ERR PFX "%s unable to obtain 64 bit DMA "
"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;
}
} else if (!(err = pci_set_dma_mask(pdev, DMA_32BIT_MASK))) {
using_dac = 0;
err = pci_set_consistent_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
Expand Down

0 comments on commit 1dc0e8d

Please sign in to comment.