Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127363
b: refs/heads/master
c: 878f2e5
h: refs/heads/master
i:
  127361: 6bfe8ef
  127359: 3da4efa
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Jan 7, 2009
1 parent 40eeb54 commit 0284a91
Show file tree
Hide file tree
Showing 3 changed files with 4 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: 98d3333a13029ab07ca1d1bfb9bfa138ea76c3c0
refs/heads/master: 878f2e50fd1cfea575cdca5bf019c2175dc64131
2 changes: 1 addition & 1 deletion trunk/arch/x86/pci/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ static int pirq_bios_set(struct pci_dev *router, struct pci_dev *dev, int pirq,
{
struct pci_dev *bridge;
int pin = pci_get_interrupt_pin(dev, &bridge);
return pcibios_set_irq_routing(bridge, pin, irq);
return pcibios_set_irq_routing(bridge, pin - 1, irq);
}

#endif
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1374,9 +1374,9 @@ pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge)
pin = dev->pin;
if (!pin)
return -1;
pin--;

while (dev->bus->self) {
pin = (pin + PCI_SLOT(dev->devfn)) % 4;
pin = (((pin - 1) + PCI_SLOT(dev->devfn)) % 4) + 1;
dev = dev->bus->self;
}
*bridge = dev;
Expand Down

0 comments on commit 0284a91

Please sign in to comment.