public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Hood <jdthoodREMOVETHIS@yahoo.co.uk>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] PnP BIOS no-irq/IRQ0 bug
Date: Thu, 20 Sep 2001 19:01:13 -0400	[thread overview]
Message-ID: <3BAA7539.28379E@yahoo.co.uk> (raw)

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

Here is a one-character patch which may be self-explanatory.
The irq should be initialized to -1 (i.e., "no irq") rather
than 0 (i.e., IRQ0) so that the irq field in the pci_dev will
be -1 and not 0 if the PnP BIOS returns an irq mask with no
bits set.     // Thomas <jdthood_AT_yahoo.co.uk>

--- linux-2.4.9-ac10/drivers/pnp/pnp_bios.c_ORIG	Thu Sep 20 18:54:59 2001
+++ linux-2.4.9-ac10/drivers/pnp/pnp_bios.c	Thu Sep 20 18:55:22 2001
@@ -716,7 +716,7 @@
 static void __init pnpbios_rawdata_2_pci_dev(struct pnp_bios_node *node, struct pci_dev *pci_dev)
 {
 	unsigned char *p = node->data, *lastp=NULL;
-        int mask,i,io,irq=0,len,dma=-1;
+        int mask,i,io,irq=-1,len,dma=-1;
 
 	memset(pci_dev, 0, sizeof(struct pci_dev));
         while ( (char *)p < ((char *)node->data + node->size )) {

[-- Attachment #2: pnpbios-patch-20010920-1 --]
[-- Type: text/plain, Size: 509 bytes --]

--- linux-2.4.9-ac10/drivers/pnp/pnp_bios.c_ORIG	Thu Sep 20 18:54:59 2001
+++ linux-2.4.9-ac10/drivers/pnp/pnp_bios.c	Thu Sep 20 18:55:22 2001
@@ -716,7 +716,7 @@
 static void __init pnpbios_rawdata_2_pci_dev(struct pnp_bios_node *node, struct pci_dev *pci_dev)
 {
 	unsigned char *p = node->data, *lastp=NULL;
-        int mask,i,io,irq=0,len,dma=-1;
+        int mask,i,io,irq=-1,len,dma=-1;
 
 	memset(pci_dev, 0, sizeof(struct pci_dev));
         while ( (char *)p < ((char *)node->data + node->size )) {

             reply	other threads:[~2001-09-20 23:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-20 23:01 Thomas Hood [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-09-20 23:54 [PATCH] PnP BIOS no-irq/IRQ0 bug Thomas Hood

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=3BAA7539.28379E@yahoo.co.uk \
    --to=jdthoodremovethis@yahoo.co.uk \
    --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