lkml.org 
[lkml]   [2000]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] detection of broken pci classes
Hello,

this patch is a back port from 2.3 of a bug fix (done by Martin Mares)
in the pci detection.




--- linux-2.2.14/drivers/pci/pci.c Wed Oct 27 02:53:40 1999
+++ linux/drivers/pci/pci.c Sat Jan 8 16:31:05 2000
@@ -239,10 +239,13 @@
pci_read_bases(dev, 1);
break;
default: /* unknown header */
- bad:
printk(KERN_ERR "PCI: %02x:%02x [%04x/%04x/%06x] has unknown header type %02x, ignoring.\n",
bus->number, dev->devfn, dev->vendor, dev->device, class, hdr_type);
continue;
+ bad:
+ printk(KERN_ERR "PCI: class %x doesn't match header type %02x. Ignoring class.\n",
+ class, hdr_type);
+ dev->class = PCI_CLASS_NOT_DEFINED;
}

DBG("PCI: %02x:%02x [%04x/%04x]\n", bus->number, dev->devfn, dev->vendor, dev->device);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.021 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site