Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21460
b: refs/heads/master
c: 63c2a0e
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent bed4163 commit 26da10e
Show file tree
Hide file tree
Showing 2 changed files with 11 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: ab66a50e31deb48b0444c248e67e5aa3217efda5
refs/heads/master: 63c2a0e598c2fa769a08a6e9ad124bf270b4436e
13 changes: 10 additions & 3 deletions trunk/arch/sparc64/kernel/pci_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,18 +581,23 @@ static int __init pci_intmap_match(struct pci_dev *pdev, unsigned int *interrupt
int plen;

bus_dev = pdev->bus->self;
bus_pcp = bus_dev->sysdata;
regs_dev = pdev;
regs_pcp = regs_dev->sysdata;

while (bus_dev->bus &&
bus_dev->bus->number != pbm->pci_first_busno) {
bus_dev->bus->number != pbm->pci_first_busno &&
prom_getproplen(bus_pcp->prom_node,
"interrupt-map") <= 0) {
regs_dev = bus_dev;
regs_pcp = regs_dev->sysdata;

bus_dev = bus_dev->bus->self;
bus_pcp = bus_dev->sysdata;
}

regs_pcp = regs_dev->sysdata;
pregs = regs_pcp->prom_regs;

bus_pcp = bus_dev->sysdata;

/* But if the PCI bridge has it's own interrupt map
* and mask properties, use that and the regs of the
Expand All @@ -616,6 +621,8 @@ static int __init pci_intmap_match(struct pci_dev *pdev, unsigned int *interrupt
return 0;
}

intmask = &bridge_local_intmask;

if (pdev->bus->self != bus_dev)
map_slot = 1;
} else {
Expand Down

0 comments on commit 26da10e

Please sign in to comment.