Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44755
b: refs/heads/master
c: 6f67f9d
h: refs/heads/master
i:
  44753: 798c1be
  44751: 12760cb
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Dec 20, 2006
1 parent 00f5576 commit 4846e0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 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: 3cd7613e25ffc0a76080045e179f984a32208829
refs/heads/master: 6f67f9d26fe5ced50f716e9620b42c0721d8b8d9
15 changes: 13 additions & 2 deletions trunk/arch/powerpc/kernel/prom_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,20 @@ static int of_irq_map_oldworld(struct device_node *device, int index,

/*
* Old machines just have a list of interrupt numbers
* and no interrupt-controller nodes.
* and no interrupt-controller nodes. We also have dodgy
* cases where the APPL,interrupts property is completely
* missing behind pci-pci bridges and we have to get it
* from the parent (the bridge itself, as apple just wired
* everything together on these)
*/
ints = get_property(device, "AAPL,interrupts", &intlen);
while (device) {
ints = get_property(device, "AAPL,interrupts", &intlen);
if (ints != NULL)
break;
device = device->parent;
if (device && strcmp(device->type, "pci") != 0)
break;
}
if (ints == NULL)
return -EINVAL;
intlen /= sizeof(u32);
Expand Down

0 comments on commit 4846e0c

Please sign in to comment.