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

Jeff Garzik
2005-09-11T00:48:07Z

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