Commit 3cd23581 authored by Andy Grover's avatar Andy Grover

ACPI: Try #2 at fixing the PCI IRQ bridge swizzle (Kai Germaschewski)

parent eac14729
...@@ -285,8 +285,9 @@ acpi_pci_irq_derive ( ...@@ -285,8 +285,9 @@ acpi_pci_irq_derive (
* Attempt to derive an IRQ for this device from a parent bridge's * Attempt to derive an IRQ for this device from a parent bridge's
* PCI interrupt routing entry (a.k.a. the "bridge swizzle"). * PCI interrupt routing entry (a.k.a. the "bridge swizzle").
*/ */
while (!irq && (bridge = bridge->bus->self)) { while (!irq && bridge->bus->self) {
pin = (pin + PCI_SLOT(dev->devfn)) % 4; pin = (pin + PCI_SLOT(bridge->devfn)) % 4;
bridge = bridge->bus->self;
irq = acpi_pci_irq_lookup(0, bridge->bus->number, PCI_SLOT(bridge->devfn), pin); irq = acpi_pci_irq_lookup(0, bridge->bus->number, PCI_SLOT(bridge->devfn), pin);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment