bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC] de4x5 pci card probe fixup


From: Samuel Thibault
Subject: [RFC] de4x5 pci card probe fixup
Date: Sun, 15 Jan 2006 00:43:48 +0100
User-agent: Mutt/1.5.9i-nntp

Hi,

Some people were having trouble on some PCI machines: boot would just
hang after scsi probe.  Here is a fixup.  The de4x5 driver was looping
like crazy just because pcibios_find_class can report other errors than
PCIBIOS_DEVICE_NOT_FOUND (PCIBIOS_FUNC_NOT_SUPPORTED for instance...).

Regards,
Samuel

[gnumach]/ChangeLog
2006-01-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>

        Fix de4x5 PCI probe.

        * linux/src/drivers/net/de4x5.c (pci_probe): Keep probing only
        while pcibios_find_class succeeds.

--- gnumach-20050801/linux/src/drivers/net/de4x5.c      1999-04-26 
07:52:00.000000000 +0200
+++ gnumach-mine/linux/src/drivers/net/de4x5.c  2006-01-15 00:35:45.000000000 
+0100
@@ -2147,7 +2147,7 @@ pci_probe(struct device *dev, u_long ioa
     }
 
     for (index=lastPCI+1; 
-        (pcibios_find_class(class, index, &pb, &dev_fn)!= 
PCIBIOS_DEVICE_NOT_FOUND);
+        (pcibios_find_class(class, index, &pb, &dev_fn)== PCIBIOS_SUCCESSFUL);
         index++) {
        dev_num = PCI_SLOT(dev_fn);
        if ((!pbus && !dnum) || ((pbus == pb) && (dnum == dev_num))) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]