Am Donnerstag, 27. März 2003 01:54 schrieb Greg KH:
> On Wed, Mar 26, 2003 at 11:02:43PM +0100, Oliver Neukum wrote:
> > Hi,
> >
> > this won't be quite to Greg's liking as it introduces holding another
> > semaphore, but it is needed. You must not probe and reset at the same
> > time. This can best be assured by the device's semaphore.
>
> Why not just use the usb bus.subsystem semaphore to prevent this from
> happening?  It's grabbed by the driver core when probe happens, so it
> would protect us if we also grab it in reset.

For two reasons,

1. The locking naturally is at device level.
2. Should USB specific code really use locks of the generic core?

        Regards
                Oliver



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to