Re: Host drivers and conversion of SCSI to the driver model

Mike Anderson
2003-06-20T20:50:55Z

Alan Stern [stern@rowland.harvard.edu] wrote:
> 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?

Did you need your own class device or can you use the shost_attrs
capability that James added?

>
> 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)".
>

Yes I will add a class release function and the order you
describe sounds the easiest to make it work.

-andmike
--
Michael Anderson
andmike@us.ibm.com