Host drivers and conversion of SCSI to the driver model

Alan Stern
2003-06-20T19:51:00Z

On Thu, 19 Jun 2003, Greg KH wrote:

> I think it's more of the matter that Mike is still changing the way the
> SCSI core works with the class and driver model. I suggest you take
> this to the linux-scsi list to hash out the way scsi should and does
> work in order to find the best solution for usb-storage, as I guess that
> it also would be the best solution for all other SCSI host drivers.

Mike:

What does the future for this progression look like? Will there be some
standard place under /sys/class/scsi??? where a host driver like
usb-storage can register its class device?

And while I'm at it, let me remind you that the class_dev element of
struct Scsi_Host needs to have a release() method. Probably the easiest
way to make it work right is to do a "get_device(&shost->gendev)" when
shost->class_dev is registered and have the release routine do
"put_device(&shost->gendev)".

Alan Stern