linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PnP BIOS no-irq/IRQ0 bug
@ 2001-09-20 23:54 Thomas Hood
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Hood @ 2001-09-20 23:54 UTC (permalink / raw)
  To: linux-kernel

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 )) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] PnP BIOS no-irq/IRQ0 bug
@ 2001-09-20 23:01 Thomas Hood
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Hood @ 2001-09-20 23:01 UTC (permalink / raw)
  To: linux-kernel

[-- 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 )) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-20 23:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-20 23:54 [PATCH] PnP BIOS no-irq/IRQ0 bug Thomas Hood
  -- strict thread matches above, loose matches on Subject: below --
2001-09-20 23:01 Thomas Hood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).