Re: [RFC 0/16] gdth combined patchset & call for testers

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

 



Boaz Harrosh wrote:
[11/16] gdth: switch to modern scsi host registration - Christoph
Christoph what is missing from here is the remove of the deprecated pci_find_device() call. Can I Just use pci_get_device() of the same signature
  or do I need to call some other pci_ members after that?


The driver needs to be converted to the "new" hotplug APIs.

The main pre-reqs are accomplished by your patches: the driver is using the modern scsi hotplug API, and uses pointers for the adapter struct rather than indices.

The final pre-req -- if your patches do not do this already -- is to completely eliminate any global driver arrays, and make sure all structures are allocated on a per-HBA basis.

Once this is done, conversion to ISA/EISA/PCI hotplug API is pretty straightforward. Each of those three bus APIs are the same: per-instance probe and remove functions, and (for PCI and sometimes EISA) an id table. This is the reason why the ISA/EISA/PCI codes were split out into separate functions, to prepare for this conversion.

	Jeff


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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux