Re: [linux-usb-devel] Re: [PATCH] USB changes for 2.5.58

Luben Tuikov
2003-01-24T21:09:37Z

Alan Stern wrote:
> Are you aware that you are contradicting yourself?
>
> On Fri, 24 Jan 2003, Luben Tuikov wrote:
>
>
>>A LLDD should and must *not* call scsi_unregister_host(). This brakes
>>all hierarchy.
>

What I probably meant is the detect()/release() pair; release() itself
normally calls scsi_unregister(host); the point is that it got nudged
from ``above'', i.e. SCSI Core.

How can a LLDD be certain that it can safely call scsi_unregister_host()
whenever it wishes? As Doug pointed out this leads to problems.

Furhtermore, are we talking about scsi_unregister_host() or
scsi_unregister(host)? The former does drivers and the latter
does hosts. This would mean that my original statement was
nevertheless correct, how can a LLDD decide to unload itself safely?

--
Luben