public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: p2@mind.be (Peter De Schrijver)
To: linux-kernel@vger.kernel.org
Subject: USB OHCI IRQ on Digital PWS500
Date: Sun, 28 Oct 2001 21:31:54 +0100	[thread overview]
Message-ID: <20011028213154.B11920@mind.be> (raw)

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

Hi,

The IRQ for the 82c693 USB function is not assigned correctly to an interrupt.
This is because it's the only PCI device which has it's IRQ line connected to
the 8259 interrupt controllers iso to the PYXIS. The following patch solves
this problem. 

Comments welcome,

Peter.

[-- Attachment #2: t --]
[-- Type: text/plain, Size: 702 bytes --]

--- orig/linux/arch/alpha/kernel/sys_miata.c	Sat Oct 13 00:35:53 2001
+++ linux/arch/alpha/kernel/sys_miata.c	Sun Oct 28 21:02:13 2001
@@ -176,6 +176,19 @@
 		{   -1,    -1,    -1,    -1,    -1},  /* IdSel 31,  PCI-PCI */
         };
 	const long min_idsel = 3, max_idsel = 20, irqs_per_slot = 5;
+	
+	/* the USB function of the 82c693 has it's interrupt connected to 
+           the 2nd 8259 controller. So we have to check for it first. */
+
+	if((slot == 7) && (PCI_FUNC(dev->devfn) == 3)) {
+		u8 irq=0;
+
+		if(pci_read_config_byte(pci_find_slot(dev->bus->number, dev->devfn & ~(7)), 0x40,&irq)!=PCIBIOS_SUCCESSFUL)
+			return -1;
+		else	
+			return irq;
+	}
+
 	return COMMON_TABLE_LOOKUP;
 }


                 reply	other threads:[~2001-10-28 20:32 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=20011028213154.B11920@mind.be \
    --to=p2@mind.be \
    --cc=linux-kernel@vger.kernel.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