Re: [PATCH] include: pci_find_device remove (include/asm-i386/ide.h)

From: Jeff Garzik
Date: Sat Sep 10 2005 - 19:48:26 EST


Grant Grundler wrote:
On Sat, Sep 10, 2005 at 07:35:10PM -0400, Jeff Garzik wrote:

Why not change it to query whether any IDE device is present, perhaps
using pci_get_class()?

Because that's not what the code is attempting to discover.


If ide_scan_pcibus() finds any pci device, it calls ide_scan_pcidev().
ide_scan_pcidev() only seems to handle PCI devices.
Are you saying there are PCI IDE devices out there that
don't advertise PCI_CLASS_STORAGE_IDE?

The code is not searching for PCI devices. The code is searching for... precisely what it is searching for: presence of PCI in the system.

Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/