[PATCH] detection of broken pci classes

From: stef (svoltz@Dorsul.wanadoo.fr)
Date: Sun Jan 16 2000 - 12:10:07 EST


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/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:13 EST