public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <syrjala-ORSVBvAovxo@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [PATCH] IRQ derive fix
Date: Tue, 8 Oct 2002 01:53:51 +0300	[thread overview]
Message-ID: <20021008015351.A16060@sci.fi> (raw)

This fixes the IRQ routing for my AGP slot. I'm not sure it's correct but
at least it works and the IO APIC code does things this way. Now my G400
get's the IRQ assigned by the BIOS.

--- linux-2.4.20-pre7/drivers/acpi/pci_irq.c~   Thu Sep 19 17:17:58 2002
+++ linux-2.4.20-pre7/drivers/acpi/pci_irq.c    Tue Oct  8 01:45:29 2002
@@ -285,7 +285,7 @@
         * PCI interrupt routing entry (a.k.a. the "bridge swizzle").
         */
        while (!irq && (bridge = bridge->bus->self)) {
-               pin = (pin + PCI_SLOT(bridge->devfn)) % 4;
+               pin = (pin + PCI_SLOT(dev->devfn)) % 4;
                irq = acpi_pci_irq_lookup(0, bridge->bus->number, PCI_SLOT(bridge->devfn), pin);
        }

-- 
Ville Syrjälä
syrjala-ORSVBvAovxo@public.gmane.org
http://www.sci.fi/~syrjala/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

                 reply	other threads:[~2002-10-07 22:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021008015351.A16060@sci.fi \
    --to=syrjala-orsvbvaovxo@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox