Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98211
b: refs/heads/master
c: e634036
h: refs/heads/master
i:
  98209: 0604c15
  98207: 8458375
v: v3
  • Loading branch information
Michael Buesch authored and John W. Linville committed Jun 13, 2008
1 parent 4cf2c5a commit 08fd32a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 6847aa5cce6e22c3625a243b02909ac46aafa110
refs/heads/master: e6340361f9c70e84312caed98c6e058ac6234e9b
12 changes: 9 additions & 3 deletions trunk/drivers/ssb/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,15 +1168,21 @@ EXPORT_SYMBOL(ssb_dma_translation);
int ssb_dma_set_mask(struct ssb_device *ssb_dev, u64 mask)
{
struct device *dma_dev = ssb_dev->dma_dev;
int err = 0;

#ifdef CONFIG_SSB_PCIHOST
if (ssb_dev->bus->bustype == SSB_BUSTYPE_PCI)
return dma_set_mask(dma_dev, mask);
if (ssb_dev->bus->bustype == SSB_BUSTYPE_PCI) {
err = pci_set_dma_mask(ssb_dev->bus->host_pci, mask);
if (err)
return err;
err = pci_set_consistent_dma_mask(ssb_dev->bus->host_pci, mask);
return err;
}
#endif
dma_dev->coherent_dma_mask = mask;
dma_dev->dma_mask = &dma_dev->coherent_dma_mask;

return 0;
return err;
}
EXPORT_SYMBOL(ssb_dma_set_mask);

Expand Down

0 comments on commit 08fd32a

Please sign in to comment.