Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128111
b: refs/heads/master
c: ee40136
h: refs/heads/master
i:
  128109: 678688f
  128107: 6ca3c61
  128103: e4d6714
  128095: a2db82d
v: v3
  • Loading branch information
Bjorn Helgaas authored and Len Brown committed Dec 31, 2008
1 parent 7017480 commit 047ec17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 3b1ea18d3b3542b55861d7f968ded705e3bc2aa6
refs/heads/master: ee40136313323db1096b17df7b436d22a24ef2be
11 changes: 7 additions & 4 deletions trunk/drivers/acpi/pci_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,17 +399,17 @@ static struct acpi_prt_entry *
acpi_pci_irq_derive(struct pci_dev *dev, int pin)
{
struct acpi_prt_entry *entry = NULL;
struct pci_dev *bridge = dev;
struct pci_dev *bridge;
u8 bridge_pin = 0, orig_pin = pin;


/*
* Attempt to derive an IRQ for this device from a parent bridge's
* PCI interrupt routing entry (eg. yenta bridge and add-in card bridge).
*/
while (bridge->bus->self) {
pin = (((pin - 1) + PCI_SLOT(bridge->devfn)) % 4) + 1;
bridge = bridge->bus->self;
bridge = dev->bus->self;
while (bridge) {
pin = (((pin - 1) + PCI_SLOT(dev->devfn)) % 4) + 1;

if ((bridge->class >> 8) == PCI_CLASS_BRIDGE_CARDBUS) {
/* PC card has the same IRQ as its cardbridge */
Expand All @@ -431,6 +431,9 @@ acpi_pci_irq_derive(struct pci_dev *dev, int pin)
pci_name(bridge)));
return entry;
}

dev = bridge;
bridge = dev->bus->self;
}

dev_warn(&dev->dev, "can't derive routing for PCI INT %c\n",
Expand Down

0 comments on commit 047ec17

Please sign in to comment.