Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84873
b: refs/heads/master
c: ccd05d0
h: refs/heads/master
i:
  84871: b1e9b9e
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Feb 8, 2008
1 parent 4b6b5ec commit 155620b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: 85687ff2b4eab47f4d637a0d3a482bb955d3cbd4
refs/heads/master: ccd05d086f82dba2ab117dcaf4a38cbb2863a439
15 changes: 7 additions & 8 deletions trunk/arch/powerpc/platforms/cell/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/notifier.h>
#include <linux/of.h>
#include <linux/of_platform.h>

#include <asm/prom.h>
Expand Down Expand Up @@ -789,18 +790,16 @@ static int __init cell_iommu_init_disabled(void)
static u64 cell_iommu_get_fixed_address(struct device *dev)
{
u64 cpu_addr, size, best_size, pci_addr = OF_BAD_ADDR;
struct device_node *tmp, *np;
struct device_node *np;
const u32 *ranges = NULL;
int i, len, best;

np = dev->archdata.of_node;
of_node_get(np);
ranges = of_get_property(np, "dma-ranges", &len);
while (!ranges && np) {
tmp = of_get_parent(np);
of_node_put(np);
np = tmp;
np = of_node_get(dev->archdata.of_node);
while (np) {
ranges = of_get_property(np, "dma-ranges", &len);
if (ranges)
break;
np = of_get_next_parent(np);
}

if (!ranges) {
Expand Down

0 comments on commit 155620b

Please sign in to comment.